pub struct LedSlots { /* private fields */ }
Expand description
Opaque type for interacting with LED slots functionality.
Implementations§
source§impl LedSlots
impl LedSlots
sourcepub fn slot_status_get(&mut self, slot: &LedSlot) -> u32
pub fn slot_status_get(&mut self, slot: &LedSlot) -> u32
Retrieve the LED status for the specified slot.
sourcepub fn slot_status_set(
&mut self,
slot: &LedSlot,
state: u32,
) -> Result<(), LsmError>
pub fn slot_status_set( &mut self, slot: &LedSlot, state: u32, ) -> Result<(), LsmError>
Set the status of the specified slot, bit sensitive input state.
Please note that not all LED hardware supports both identification and fault LEDs.
Using this API, please specify what you would like regardless of support and the hardware will adhere to your request as best it can.
- LED_STATUS_IDENT_ON => Implies fault off
- LED_STATUS_FAULT_ON => Implies ident and fault on
- LED_STATUS_IDENT_OFF => Implies both ident and fault are off
- LED_STATUS_FAULT_OFF => Implies both ident and fault are off
- LSM_DISK_LED_STATUS_IDENT_OFF|LSM_DISK_LED_STATUS_FAULT_OFF
- LED_STATUS_IDENT_ON|LSM_DISK_LED_STATUS_FAULT_OFF
- LED_STATUS_FAULT_ON|LSM_DISK_LED_STATUS_IDENT_OFF
- LED_STATUS_IDENT_ON|LSM_DISK_LED_STATUS_FAULT_ON
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LedSlots
impl RefUnwindSafe for LedSlots
impl !Send for LedSlots
impl !Sync for LedSlots
impl Unpin for LedSlots
impl UnwindSafe for LedSlots
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more