Enum ssp::types::SequenceFlag
source · #[repr(u8)]pub enum SequenceFlag {
Unset,
Set,
}Expand description
Each time the master sends a new packet to a device it alternates the sequence flag. If a device receives a packet with the same sequence flag as the last one, it does not execute the command but simply repeats its last reply. In a reply packet the address and sequence flag match the command packet.
Variants§
Implementations§
source§impl SequenceFlag
impl SequenceFlag
source§impl SequenceFlag
impl SequenceFlag
sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new SequenceFlag.
Defaults to unset.
Trait Implementations§
source§impl Clone for SequenceFlag
impl Clone for SequenceFlag
source§fn clone(&self) -> SequenceFlag
fn clone(&self) -> SequenceFlag
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 SequenceFlag
impl Debug for SequenceFlag
source§impl Default for SequenceFlag
impl Default for SequenceFlag
source§impl Display for SequenceFlag
impl Display for SequenceFlag
source§impl From<&SequenceFlag> for &'static str
impl From<&SequenceFlag> for &'static str
source§fn from(name: &SequenceFlag) -> Self
fn from(name: &SequenceFlag) -> Self
Converts to this type from the input type.
source§impl From<&SequenceFlag> for bool
impl From<&SequenceFlag> for bool
source§fn from(n: &SequenceFlag) -> Self
fn from(n: &SequenceFlag) -> Self
Converts to this type from the input type.
source§impl From<&SequenceFlag> for u8
impl From<&SequenceFlag> for u8
source§fn from(n: &SequenceFlag) -> Self
fn from(n: &SequenceFlag) -> Self
Converts to this type from the input type.
source§impl From<SequenceFlag> for &'static str
impl From<SequenceFlag> for &'static str
source§fn from(name: SequenceFlag) -> Self
fn from(name: SequenceFlag) -> Self
Converts to this type from the input type.
source§impl From<SequenceFlag> for bool
impl From<SequenceFlag> for bool
source§fn from(n: SequenceFlag) -> Self
fn from(n: SequenceFlag) -> Self
Converts to this type from the input type.
source§impl From<SequenceFlag> for u8
impl From<SequenceFlag> for u8
source§fn from(n: SequenceFlag) -> Self
fn from(n: SequenceFlag) -> Self
Converts to this type from the input type.
source§impl From<bool> for SequenceFlag
impl From<bool> for SequenceFlag
source§impl From<u8> for SequenceFlag
impl From<u8> for SequenceFlag
source§impl Not for SequenceFlag
impl Not for SequenceFlag
source§impl PartialEq<SequenceFlag> for SequenceFlag
impl PartialEq<SequenceFlag> for SequenceFlag
source§fn eq(&self, other: &SequenceFlag) -> bool
fn eq(&self, other: &SequenceFlag) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for SequenceFlag
impl StructuralPartialEq for SequenceFlag
Auto Trait Implementations§
impl RefUnwindSafe for SequenceFlag
impl Send for SequenceFlag
impl Sync for SequenceFlag
impl Unpin for SequenceFlag
impl UnwindSafe for SequenceFlag
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