pub enum SequenceFlag {
Continuation = 0,
Start = 1,
End = 2,
Unsegmented = 3,
}Expand description
Sequence flag indicating if the packet is the start, end, or continuation in a sequence of SpacePackets, or is the packet is unsegmented.
Variants§
Implementations§
Source§impl SequenceFlag
impl SequenceFlag
Sourcepub fn to_bits(&self) -> u16
pub fn to_bits(&self) -> u16
Converts the SequenceFlag enum into its bitwise representation to be used in the SPP primary header.
Sourcepub fn from_bits(bits: u16) -> Self
pub fn from_bits(bits: u16) -> Self
Converts the raw bits (after being shifted) from the sequence control portion of the primary header into SequenceFlag.
Sourcepub fn is_continuation(&self) -> bool
pub fn is_continuation(&self) -> bool
returns boolean indicating if instance of SequenceFlag is SequenceFlag::Continuation
Sourcepub fn is_start(&self) -> bool
pub fn is_start(&self) -> bool
returns boolean indicating if instance of SequenceFlag is SequenceFlag::Start
Sourcepub fn is_end(&self) -> bool
pub fn is_end(&self) -> bool
returns boolean indicating if instance of SequenceFlag is SequenceFlag::End
Sourcepub fn is_unsegmented(&self) -> bool
pub fn is_unsegmented(&self) -> bool
returns boolean indicating if instance of SequenceFlag is SequenceFlag::Unsegmented
Trait Implementations§
Source§impl Clone for SequenceFlag
impl Clone for SequenceFlag
Source§fn clone(&self) -> SequenceFlag
fn clone(&self) -> SequenceFlag
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 SequenceFlag
impl Debug for SequenceFlag
Source§impl PartialEq for SequenceFlag
impl PartialEq for SequenceFlag
impl Copy for SequenceFlag
impl Eq for SequenceFlag
impl StructuralPartialEq for SequenceFlag
Auto Trait Implementations§
impl Freeze for SequenceFlag
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