Struct ssp::configure_bezel::ConfigureBezelCommand
source · #[repr(C)]pub struct ConfigureBezelCommand { /* private fields */ }Expand description
Configure Bezel - Command (0x54)
Four byte command that sets the colour of the bezel to a specified RGB colour. If the validator does not have a bezel that can be modified in this way, 0xF2 (Unknown command) will be returned.
Implementations§
source§impl ConfigureBezelCommand
impl ConfigureBezelCommand
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new ConfigureBezelCommand message.
sourcepub fn config_storage(&self) -> BezelConfigStorage
pub fn config_storage(&self) -> BezelConfigStorage
Gets the BezelConfigStorage setting for where color configuration is stored in memory.
sourcepub fn set_config_storage(&mut self, config: BezelConfigStorage)
pub fn set_config_storage(&mut self, config: BezelConfigStorage)
Sets the BezelConfigStorage setting for where color configuration is stored in memory.
Trait Implementations§
source§impl Clone for ConfigureBezelCommand
impl Clone for ConfigureBezelCommand
source§fn clone(&self) -> ConfigureBezelCommand
fn clone(&self) -> ConfigureBezelCommand
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl CommandOps for ConfigureBezelCommand
impl CommandOps for ConfigureBezelCommand
source§fn command(&self) -> MessageType
fn command(&self) -> MessageType
Gets the Command message type.
source§fn set_command(&mut self, command: MessageType)
fn set_command(&mut self, command: MessageType)
Sets the Command message type.
source§impl Debug for ConfigureBezelCommand
impl Debug for ConfigureBezelCommand
source§impl Default for ConfigureBezelCommand
impl Default for ConfigureBezelCommand
source§impl Display for ConfigureBezelCommand
impl Display for ConfigureBezelCommand
source§impl MessageOps for ConfigureBezelCommand
impl MessageOps for ConfigureBezelCommand
source§fn message_type(&self) -> MessageType
fn message_type(&self) -> MessageType
Gets the message type.
source§fn is_command(&self) -> bool
fn is_command(&self) -> bool
Gets whether the message is a command message.
source§fn is_response(&self) -> bool
fn is_response(&self) -> bool
Gets whether the message is a response message.
source§fn is_variable(&self) -> bool
fn is_variable(&self) -> bool
Gets whether the message has a variable data length.
source§fn set_data_len(&mut self, len: u8)
fn set_data_len(&mut self, len: u8)
Sets the data length field in the message buffer.
source§fn metadata_len(&self) -> usize
fn metadata_len(&self) -> usize
Gets the length of the metadata fields in the message buffer.
source§fn sequence_id(&self) -> SequenceId
fn sequence_id(&self) -> SequenceId
Gets the SequenceId field.
source§fn set_sequence_id(&mut self, id: SequenceId)
fn set_sequence_id(&mut self, id: SequenceId)
Sets the SequenceId field.
source§fn toggle_sequence_id(&mut self)
fn toggle_sequence_id(&mut self)
Toggles the SequenceFlag value of the SequenceId.
fn set_data(&mut self, data: &[u8]) -> Result<()>
source§fn toggle_sequence_flag(&mut self)
fn toggle_sequence_flag(&mut self)
Toggles the value of the SequenceFlag.
source§fn calculate_checksum(&mut self) -> u16
fn calculate_checksum(&mut self) -> u16
Calculates the CRC-16 checksum of the message.
source§fn verify_checksum(&self) -> Result<()>
fn verify_checksum(&self) -> Result<()>
Verifies the checksum in the message buffer matches the calculated value.
source§impl PartialEq<ConfigureBezelCommand> for ConfigureBezelCommand
impl PartialEq<ConfigureBezelCommand> for ConfigureBezelCommand
source§fn eq(&self, other: &ConfigureBezelCommand) -> bool
fn eq(&self, other: &ConfigureBezelCommand) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<&[u8]> for ConfigureBezelCommand
impl TryFrom<&[u8]> for ConfigureBezelCommand
impl Copy for ConfigureBezelCommand
impl StructuralPartialEq for ConfigureBezelCommand
Auto Trait Implementations§
impl RefUnwindSafe for ConfigureBezelCommand
impl Send for ConfigureBezelCommand
impl Sync for ConfigureBezelCommand
impl Unpin for ConfigureBezelCommand
impl UnwindSafe for ConfigureBezelCommand
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