pub struct MjdBcdDateTime {
pub year: u16,
pub month: u8,
pub day: u8,
pub hour: u8,
pub minute: u8,
pub second: u8,
}Expand description
Decoded 5-byte DVB UTC time (16-bit MJD + 24-bit BCD HHMMSS).
Produced by decode_mjd_bcd; field values are validated (months 1–12,
days 1–31, hours 0–23, minutes/seconds 0–59). The year is the full
calendar year (e.g. 2023, not an offset).
Fields§
§year: u16Calendar year (full, e.g. 2023).
month: u8Month of year (1–12).
day: u8Day of month (1–31).
hour: u8Hour of day (0–23).
minute: u8Minute of hour (0–59).
second: u8Second of minute (0–59).
Trait Implementations§
Source§impl Clone for MjdBcdDateTime
impl Clone for MjdBcdDateTime
Source§fn clone(&self) -> MjdBcdDateTime
fn clone(&self) -> MjdBcdDateTime
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 moreimpl Copy for MjdBcdDateTime
Source§impl Debug for MjdBcdDateTime
impl Debug for MjdBcdDateTime
impl Eq for MjdBcdDateTime
Source§impl Hash for MjdBcdDateTime
impl Hash for MjdBcdDateTime
Source§impl PartialEq for MjdBcdDateTime
impl PartialEq for MjdBcdDateTime
Source§fn eq(&self, other: &MjdBcdDateTime) -> bool
fn eq(&self, other: &MjdBcdDateTime) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MjdBcdDateTime
Auto Trait Implementations§
impl Freeze for MjdBcdDateTime
impl RefUnwindSafe for MjdBcdDateTime
impl Send for MjdBcdDateTime
impl Sync for MjdBcdDateTime
impl Unpin for MjdBcdDateTime
impl UnsafeUnpin for MjdBcdDateTime
impl UnwindSafe for MjdBcdDateTime
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