Type Alias kitsune_p2p_dht::spacetime::TimeSegment
source · pub type TimeSegment = Segment<TimeOffset>;
Expand description
Alias
Aliased Type§
struct TimeSegment {
pub power: u8,
pub offset: TimeOffset,
}
Fields§
§power: u8
The exponent, where length = 2^power
offset: TimeOffset
The offset from the origin, measured in number of lengths
Implementations§
source§impl TimeSegment
impl TimeSegment
sourcepub fn timestamp_bounds(&self, topo: &Topology) -> (Timestamp, Timestamp)
pub fn timestamp_bounds(&self, topo: &Topology) -> (Timestamp, Timestamp)
Get the start and end bounds, in absolute Timestamp coordinates, for this segment