[−][src]Struct rust_ipv8::payloads::timedistributionpayload::TimeDistributionPayload
The global time in the system. Uses a lamport clock system. Ipv8 stores global time values using, at most, 64 bits. Therefore there is a finite number of global time values available. To avoid malicious peers from quickly pushing the global time value to the point where none are left, peers will only accept messages with a global time that is within a locally evaluated limit. This limit is set to the median of the neighbors’ global time values plus a predefined margin. https://en.wikipedia.org/wiki/Lamport_timestamps (from dispersy docs. TODO: still up to date?)
Fields
global_time: u64
The actual time represented as a u64
Trait Implementations
impl Ipv8Payload for TimeDistributionPayload
[src]
impl PartialEq<TimeDistributionPayload> for TimeDistributionPayload
[src]
fn eq(&self, other: &TimeDistributionPayload) -> bool
[src]
fn ne(&self, other: &TimeDistributionPayload) -> bool
[src]
impl Debug for TimeDistributionPayload
[src]
impl Serialize for TimeDistributionPayload
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for TimeDistributionPayload
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Unpin for TimeDistributionPayload
impl Sync for TimeDistributionPayload
impl Send for TimeDistributionPayload
impl RefUnwindSafe for TimeDistributionPayload
impl UnwindSafe for TimeDistributionPayload
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,