pub struct TMSecondaryHeader {
pub tfvn: u8,
pub data_field: Vec<u8>,
}Available on crate feature
tctm only.Expand description
A flexible Platform for the Secondary Header in a TM Transfer Frame. This secondary header computes the length of the Secondary Header Payload at en/de-coding time, as such it should only be used along with a TMTransferFrame to ensure correctness.
Fields§
§tfvn: u8The version number of the secondary header CCSDS 132.0-B-3 recognizes only one version, which is Version 1, the binary encoded Version Number of which is ‘00’.
data_field: Vec<u8>The data Field of the secondary header contains mission specific information. Maximum length is 63 bytes.
Implementations§
Source§impl TMSecondaryHeader
impl TMSecondaryHeader
Sourcepub fn validate(&self) -> Result<(), Error>
pub fn validate(&self) -> Result<(), Error>
Validate header values which require bit masks will fit in the desginate bit-depth.
Errors:
- if Self::tfvn > 3
- if Self::data_field has length > 63
Trait Implementations§
Source§impl Clone for TMSecondaryHeader
impl Clone for TMSecondaryHeader
Source§fn clone(&self) -> TMSecondaryHeader
fn clone(&self) -> TMSecondaryHeader
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 TMSecondaryHeader
impl Debug for TMSecondaryHeader
Source§impl PartialEq for TMSecondaryHeader
impl PartialEq for TMSecondaryHeader
impl Eq for TMSecondaryHeader
impl StructuralPartialEq for TMSecondaryHeader
Auto Trait Implementations§
impl Freeze for TMSecondaryHeader
impl RefUnwindSafe for TMSecondaryHeader
impl Send for TMSecondaryHeader
impl Sync for TMSecondaryHeader
impl Unpin for TMSecondaryHeader
impl UnwindSafe for TMSecondaryHeader
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