pub struct Instant {
pub scale: TimeScale,
pub secs: i64,
pub nanos: u32,
pub frame: Option<String>,
pub seal: Option<[u8; 64]>,
}Expand description
A point in time with a known scale, exact secs+nanos, and an optional cryptographic seal (T1).
Replaces time.unix() -> i64 as the primitive. The seal is a
signature over (scale, secs, nanos, frame) proving the instant was
asserted by a specific authority.
Fields§
§scale: TimeScale§secs: i64§nanos: u32§frame: Option<String>Optional reference frame (e.g. a worldline ID or observer DID).
seal: Option<[u8; 64]>Optional ed25519 signature over the instant’s canonical encoding.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Instant
Auto Trait Implementations§
impl Freeze for Instant
impl RefUnwindSafe for Instant
impl Send for Instant
impl Sync for Instant
impl Unpin for Instant
impl UnsafeUnpin for Instant
impl UnwindSafe for Instant
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