pub struct PrimaryHeader {
pub version: u8,
pub type_flag: u8,
pub has_secondary_header: bool,
pub apid: Apid,
pub sequence_flags: u8,
pub sequence_id: u16,
pub len_minus1: u16,
}Expand description
CCSDS Primary Header
The primary header format is common to all CCSDS space packets.
Fields§
§version: u8§type_flag: u8§has_secondary_header: bool§apid: Apid§sequence_flags: u8Defines a packets grouping. See the SEQ_* values.
sequence_id: u16§len_minus1: u16Implementations§
Source§impl PrimaryHeader
impl PrimaryHeader
Sourcepub const SEQ_CONTINUATION: u8 = 0u8
pub const SEQ_CONTINUATION: u8 = 0u8
Packet is a part of a packet group, but not first and not last
Sourcepub const SEQ_UNSEGMENTED: u8 = 3u8
pub const SEQ_UNSEGMENTED: u8 = 3u8
Packet is not part of a packet group, i.e., standalone.
Trait Implementations§
Source§impl Clone for PrimaryHeader
impl Clone for PrimaryHeader
Source§fn clone(&self) -> PrimaryHeader
fn clone(&self) -> PrimaryHeader
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 PrimaryHeader
impl Debug for PrimaryHeader
Source§impl<'de> Deserialize<'de> for PrimaryHeader
impl<'de> Deserialize<'de> for PrimaryHeader
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PrimaryHeader
impl Serialize for PrimaryHeader
impl Copy for PrimaryHeader
Auto Trait Implementations§
impl Freeze for PrimaryHeader
impl RefUnwindSafe for PrimaryHeader
impl Send for PrimaryHeader
impl Sync for PrimaryHeader
impl Unpin for PrimaryHeader
impl UnwindSafe for PrimaryHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more