pub struct PacketVersion(/* private fields */);Expand description
The 3-bit packet version number.
As per the CCSDS standard, this library currently only supports Version 1 (binary 000).
Implementations§
Source§impl PacketVersion
impl PacketVersion
Sourcepub const VERSION_1: Self
pub const VERSION_1: Self
The version number for CCSDS Space Packets defined in 133.0-B-2 (value is 0).
Sourcepub fn is_supported(&self) -> bool
pub fn is_supported(&self) -> bool
Checks if this library supports the packet version.
Trait Implementations§
Source§impl Clone for PacketVersion
impl Clone for PacketVersion
Source§fn clone(&self) -> PacketVersion
fn clone(&self) -> PacketVersion
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 PacketVersion
impl Debug for PacketVersion
Source§impl Hash for PacketVersion
impl Hash for PacketVersion
Source§impl PartialEq for PacketVersion
impl PartialEq for PacketVersion
impl Copy for PacketVersion
impl Eq for PacketVersion
impl StructuralPartialEq for PacketVersion
Auto Trait Implementations§
impl Freeze for PacketVersion
impl RefUnwindSafe for PacketVersion
impl Send for PacketVersion
impl Sync for PacketVersion
impl Unpin for PacketVersion
impl UnsafeUnpin for PacketVersion
impl UnwindSafe for PacketVersion
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