[][src]Struct clepsydra::PeerID

pub struct PeerID(pub u64);

A simple "peer identifier" which should be unique across any present or future configuration of a peer group. A randomly-chosen u64 should suffice.

Used when tracking quorums and configuration members both in this crate and as a parameter to the lattice agreement protocol in concorde.

Trait Implementations

impl Clone for PeerID[src]

impl Copy for PeerID[src]

impl Debug for PeerID[src]

impl Default for PeerID[src]

impl<'de> Deserialize<'de> for PeerID[src]

impl Eq for PeerID[src]

impl Hash for PeerID[src]

impl Ord for PeerID[src]

impl PartialEq<PeerID> for PeerID[src]

impl PartialOrd<PeerID> for PeerID[src]

impl Serialize for PeerID[src]

impl StructuralEq for PeerID[src]

impl StructuralPartialEq for PeerID[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DefTraits for T where
    T: Clone + Ord + Default + Debug + Hash + DeserializeOwned + Serialize
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Msg for T where
    T: Serialize + DeserializeOwned + Send + Sync + 'static, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> ValTraits for T where
    T: Clone + Eq + Default + Debug + Hash + DeserializeOwned + Serialize
[src]

impl<T> WithSubscriber for T[src]