#[repr(C)]pub struct SetModulusResponse { /* private fields */ }
Expand description
SetModulus - Response (0x4B)
Represents a response to an SetModulusCommand message.
Implementations§
Source§impl SetModulusResponse
impl SetModulusResponse
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SetModulusResponse message.
Trait Implementations§
Source§impl Clone for SetModulusResponse
impl Clone for SetModulusResponse
Source§fn clone(&self) -> SetModulusResponse
fn clone(&self) -> SetModulusResponse
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 Debug for SetModulusResponse
impl Debug for SetModulusResponse
Source§impl Default for SetModulusResponse
impl Default for SetModulusResponse
Source§impl Display for SetModulusResponse
impl Display for SetModulusResponse
Source§impl MessageOps for SetModulusResponse
impl MessageOps for SetModulusResponse
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 SetModulusResponse
impl PartialEq for SetModulusResponse
Source§impl ResponseOps for SetModulusResponse
impl ResponseOps for SetModulusResponse
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 SetModulusResponse
impl TryFrom<&[u8]> for SetModulusResponse
impl Copy for SetModulusResponse
impl StructuralPartialEq for SetModulusResponse
Auto Trait Implementations§
impl Freeze for SetModulusResponse
impl RefUnwindSafe for SetModulusResponse
impl Send for SetModulusResponse
impl Sync for SetModulusResponse
impl Unpin for SetModulusResponse
impl UnwindSafe for SetModulusResponse
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