pub struct Time {
pub cds: [u8; 8],
}Expand description
CCSDS Day Segmented (CDS) time code.
8 bytes: 2-byte day count (epoch 1958-01-01) + 4-byte ms of day
- 2-byte microseconds of millisecond.
Fields§
§cds: [u8; 8]Raw 8-byte CDS time field.
Implementations§
Source§impl Time
impl Time
Sourcepub const fn from_bytes(bytes: [u8; 8]) -> Self
pub const fn from_bytes(bytes: [u8; 8]) -> Self
Creates a Time from raw bytes.
Sourcepub fn microseconds(&self) -> u16
pub fn microseconds(&self) -> u16
Returns the sub-millisecond microseconds.
Trait Implementations§
impl Copy for Time
impl Eq for Time
impl StructuralPartialEq for Time
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnsafeUnpin for Time
impl UnwindSafe for Time
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