pub struct TimeModel {
pub t0: u64,
pub window_secs: u64,
pub slot_ms: u64,
}Expand description
Time model governing rendezvous slotting and search windows.
Fields§
§t0: u64Anchor time in Unix seconds.
window_secs: u64Window size in seconds (Tw).
slot_ms: u64Slot duration in milliseconds (Δ).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TimeModel
impl<'de> Deserialize<'de> for TimeModel
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeModel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeModel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TimeModel
impl Serialize for TimeModel
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for TimeModel
impl StructuralPartialEq for TimeModel
Auto Trait Implementations§
impl Freeze for TimeModel
impl RefUnwindSafe for TimeModel
impl Send for TimeModel
impl Sync for TimeModel
impl Unpin for TimeModel
impl UnwindSafe for TimeModel
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