pub struct UtcT {
pub time: TimeT,
pub inacclo: u32,
pub inacchi: u16,
pub tdf: TdfT,
}Expand description
TimeBase::UtcT (Spec §1.3.2.4) — Universal-Time-Coordinated
Struct mit 16 Bytes Wire-Format.
Fields§
§time: TimeTTime-Wert (TimeT). 100ns-Ticks since 1582 fuer absolute Zeit bzw. relativer Wert fuer Duration-Form.
inacclo: u32Niedrige 32 Bit der Inaccuracy (inacclo).
inacchi: u16Hohe 16 Bit der Inaccuracy (inacchi).
tdf: TdfTTime-Displacement-Factor (tdf).
Implementations§
Source§impl UtcT
impl UtcT
Sourcepub const fn new(time: TimeT, inaccuracy: InaccuracyT, tdf: TdfT) -> Self
pub const fn new(time: TimeT, inaccuracy: InaccuracyT, tdf: TdfT) -> Self
Konstruktor mit allen Spec-Feldern. Inaccuracy wird auf 48 bit gekappt (Spec §1.3.2.4).
Sourcepub const fn inaccuracy(self) -> InaccuracyT
pub const fn inaccuracy(self) -> InaccuracyT
Liefert die Inaccuracy als 48-bit-zusammengesetzten Wert
(inacchi << 32 | inacclo). Spec §1.3.2.2 + §1.3.2.4.
Sourcepub const fn set_inaccuracy(&mut self, value: InaccuracyT)
pub const fn set_inaccuracy(&mut self, value: InaccuracyT)
Setzt Inaccuracy (kappt auf 48 bit).
Sourcepub const fn local_time(self) -> TimeT
pub const fn local_time(self) -> TimeT
Spec §1.3.2.4 — UTC-time + tdf*600,000,000 ergibt die lokale Zeit (in 100ns-Ticks). Liefert die lokale Zeit-TimeT. 600_000_000 = 60 sec * 10_000_000 ticks/sec.
Trait Implementations§
impl Copy for UtcT
impl Eq for UtcT
impl StructuralPartialEq for UtcT
Auto Trait Implementations§
impl Freeze for UtcT
impl RefUnwindSafe for UtcT
impl Send for UtcT
impl Sync for UtcT
impl Unpin for UtcT
impl UnsafeUnpin for UtcT
impl UnwindSafe for UtcT
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