[][src]Struct raftlog::election::Ballot

pub struct Ballot {
    pub term: Term,
    pub voted_for: NodeId,
}

選挙でのノードの投票内容.

Fields

term: Term

どの選挙での投票かを識別するための期間番号.

voted_for: NodeId

投票先.

Trait Implementations

impl Clone for Ballot[src]

impl Debug for Ballot[src]

impl Eq for Ballot[src]

impl PartialEq<Ballot> for Ballot[src]

impl StructuralEq for Ballot[src]

impl StructuralPartialEq for Ballot[src]

Auto Trait Implementations

impl RefUnwindSafe for Ballot

impl Send for Ballot

impl Sync for Ballot

impl Unpin for Ballot

impl UnwindSafe for Ballot

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> From<T> for T[src]

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

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.