pub struct PollWithAckResponse { /* private fields */ }Expand description
PollWithAck - Response (0x56)
Represents a response to a PollWithAckCommand message.
Implementations§
Source§impl PollWithAckResponse
impl PollWithAckResponse
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new PollWithAckResponse message.
Sourcepub fn last_response_statuses(&self) -> ResponseStatusList
pub fn last_response_statuses(&self) -> ResponseStatusList
Gets the ResponseStatuses processed since the last PollWithAckCommand.
Trait Implementations§
Source§impl Clone for PollWithAckResponse
impl Clone for PollWithAckResponse
Source§fn clone(&self) -> PollWithAckResponse
fn clone(&self) -> PollWithAckResponse
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 PollWithAckResponse
impl Debug for PollWithAckResponse
Source§impl Default for PollWithAckResponse
impl Default for PollWithAckResponse
Source§impl Display for PollWithAckResponse
impl Display for PollWithAckResponse
Source§impl MessageOps for PollWithAckResponse
impl MessageOps for PollWithAckResponse
Source§fn message_type(&self) -> MessageType
fn message_type(&self) -> MessageType
Gets the message type.
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 is_command(&self) -> bool
fn is_command(&self) -> bool
Gets whether the message is a command message.
Source§fn is_variable(&self) -> bool
fn is_variable(&self) -> bool
Gets whether the message has a variable data length.
Source§fn is_response(&self) -> bool
fn is_response(&self) -> bool
Gets whether the message is a response message.
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 PollWithAckResponse
impl PartialEq for PollWithAckResponse
Source§impl ResponseOps for PollWithAckResponse
impl ResponseOps for PollWithAckResponse
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 PollWithAckResponse
impl TryFrom<&[u8]> for PollWithAckResponse
impl Copy for PollWithAckResponse
impl StructuralPartialEq for PollWithAckResponse
Auto Trait Implementations§
impl Freeze for PollWithAckResponse
impl RefUnwindSafe for PollWithAckResponse
impl Send for PollWithAckResponse
impl Sync for PollWithAckResponse
impl Unpin for PollWithAckResponse
impl UnwindSafe for PollWithAckResponse
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