Struct ccsds::PrimaryHeader
source · 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§
Trait Implementations§
source§impl Clone for PrimaryHeader
impl Clone for PrimaryHeader
source§fn clone(&self) -> PrimaryHeader
fn clone(&self) -> PrimaryHeader
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 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 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