pub struct ReaderLEDControl<'a> {
pub led_states: &'a [ReaderLEDControlState],
}
Expand description
osdp_LED
Fields§
§led_states: &'a [ReaderLEDControlState]
Implementations§
Source§impl<'a> ReaderLEDControl<'a>
impl<'a> ReaderLEDControl<'a>
Sourcepub fn new(
led_states: &'a [ReaderLEDControlState],
) -> Result<Self, InvalidLengthError>
pub fn new( led_states: &'a [ReaderLEDControlState], ) -> Result<Self, InvalidLengthError>
§Arguments
led_states
- The LED states to control.
Trait Implementations§
Source§impl<'a> Clone for ReaderLEDControl<'a>
impl<'a> Clone for ReaderLEDControl<'a>
Source§fn clone(&self) -> ReaderLEDControl<'a>
fn clone(&self) -> ReaderLEDControl<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ReaderLEDControl<'a>
impl<'a> Debug for ReaderLEDControl<'a>
Source§impl OSDPCommand for ReaderLEDControl<'_>
impl OSDPCommand for ReaderLEDControl<'_>
Source§fn cmnd(&self) -> CommandType
fn cmnd(&self) -> CommandType
The command type.
fn build_command_header(&self, device: &impl Device) -> Vec<u8> ⓘ
fn attach_command_checksum(&self, command: &mut Vec<u8>)
fn attach_command_crc(&self, command: &mut Vec<u8>)
fn build_command_modify(&self, _command: &mut Vec<u8>)
fn build_command(&self, device: &impl Device) -> Vec<u8> ⓘ
Source§impl<'a> PartialEq for ReaderLEDControl<'a>
impl<'a> PartialEq for ReaderLEDControl<'a>
impl<'a> Copy for ReaderLEDControl<'a>
impl<'a> Eq for ReaderLEDControl<'a>
impl<'a> StructuralPartialEq for ReaderLEDControl<'a>
Auto Trait Implementations§
impl<'a> Freeze for ReaderLEDControl<'a>
impl<'a> RefUnwindSafe for ReaderLEDControl<'a>
impl<'a> Send for ReaderLEDControl<'a>
impl<'a> Sync for ReaderLEDControl<'a>
impl<'a> Unpin for ReaderLEDControl<'a>
impl<'a> UnwindSafe for ReaderLEDControl<'a>
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