#[repr(C)]pub struct EncryptionResetResponse { /* private fields */ }
Expand description
EncryptionReset - Response (0x61)
Represents a response to an EncryptionResetCommand message.
Implementations§
Source§impl EncryptionResetResponse
impl EncryptionResetResponse
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new EncryptionResetResponse message.
Trait Implementations§
Source§impl Clone for EncryptionResetResponse
impl Clone for EncryptionResetResponse
Source§fn clone(&self) -> EncryptionResetResponse
fn clone(&self) -> EncryptionResetResponse
Returns a duplicate 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 Debug for EncryptionResetResponse
impl Debug for EncryptionResetResponse
Source§impl Default for EncryptionResetResponse
impl Default for EncryptionResetResponse
Source§impl Display for EncryptionResetResponse
impl Display for EncryptionResetResponse
Source§impl MessageOps for EncryptionResetResponse
impl MessageOps for EncryptionResetResponse
Source§fn set_data_len(&mut self, len: u8)
fn set_data_len(&mut self, len: u8)
Sets the data length of the message.
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 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 for EncryptionResetResponse
impl PartialEq for EncryptionResetResponse
Source§impl ResponseOps for EncryptionResetResponse
impl ResponseOps for EncryptionResetResponse
Source§fn response_status(&self) -> ResponseStatus
fn response_status(&self) -> ResponseStatus
Gets the Response status of the message.
Source§fn set_response_status(&mut self, status: ResponseStatus)
fn set_response_status(&mut self, status: ResponseStatus)
Sets the Response status of the message.
Source§impl TryFrom<&[u8]> for EncryptionResetResponse
impl TryFrom<&[u8]> for EncryptionResetResponse
impl Copy for EncryptionResetResponse
impl StructuralPartialEq for EncryptionResetResponse
Auto Trait Implementations§
impl Freeze for EncryptionResetResponse
impl RefUnwindSafe for EncryptionResetResponse
impl Send for EncryptionResetResponse
impl Sync for EncryptionResetResponse
impl Unpin for EncryptionResetResponse
impl UnwindSafe for EncryptionResetResponse
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