pub struct CcsdsPackingParams { /* private fields */ }Expand description
Validated parameters for CCSDS 121.0 packing (template 5.42).
Implementations§
Source§impl CcsdsPackingParams
impl CcsdsPackingParams
Sourcepub fn new(
packing: ScaledPackingParams,
flags: CcsdsFlags,
block_size: CcsdsBlockSize,
reference_sample_interval: u16,
) -> Result<CcsdsPackingParams, Error>
pub fn new( packing: ScaledPackingParams, flags: CcsdsFlags, block_size: CcsdsBlockSize, reference_sample_interval: u16, ) -> Result<CcsdsPackingParams, Error>
Constructs a parameter set after validating the interdependent AEC width, flag, block-size, and reference-interval constraints.
pub const fn packing(&self) -> &ScaledPackingParams
pub const fn flags(&self) -> CcsdsFlags
pub const fn block_size(&self) -> CcsdsBlockSize
pub const fn reference_sample_interval(&self) -> u16
Trait Implementations§
Source§impl Clone for CcsdsPackingParams
impl Clone for CcsdsPackingParams
Source§fn clone(&self) -> CcsdsPackingParams
fn clone(&self) -> CcsdsPackingParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CcsdsPackingParams
impl Debug for CcsdsPackingParams
Source§impl PartialEq for CcsdsPackingParams
impl PartialEq for CcsdsPackingParams
impl StructuralPartialEq for CcsdsPackingParams
Auto Trait Implementations§
impl Freeze for CcsdsPackingParams
impl RefUnwindSafe for CcsdsPackingParams
impl Send for CcsdsPackingParams
impl Sync for CcsdsPackingParams
impl Unpin for CcsdsPackingParams
impl UnsafeUnpin for CcsdsPackingParams
impl UnwindSafe for CcsdsPackingParams
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> 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