[][src]Enum rhododendron::LocalizedMessage

pub enum LocalizedMessage<C, D, V, S> {
    Propose(LocalizedProposal<C, D, V, S>),
    Vote(LocalizedVote<D, V, S>),
}

A localized message.

Variants

Propose(LocalizedProposal<C, D, V, S>)

A proposal.

Vote(LocalizedVote<D, V, S>)

A vote.

Methods

impl<C, D, V, S> LocalizedMessage<C, D, V, S>[src]

pub fn sender(&self) -> &V[src]

Extract the sender.

pub fn round_number(&self) -> u32[src]

Extract the round number.

Trait Implementations

impl<C: Clone, D: Clone, V: Clone, S: Clone> Clone for LocalizedMessage<C, D, V, S>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<C, D, V, S> From<LocalizedVote<D, V, S>> for LocalizedMessage<C, D, V, S>[src]

impl<C: Debug, D: Debug, V: Debug, S: Debug> Debug for LocalizedMessage<C, D, V, S>[src]

Auto Trait Implementations

impl<C, D, V, S> Sync for LocalizedMessage<C, D, V, S> where
    C: Sync,
    D: Sync,
    S: Sync,
    V: Sync

impl<C, D, V, S> Send for LocalizedMessage<C, D, V, S> where
    C: Send,
    D: Send,
    S: Send,
    V: Send

impl<C, D, V, S> Unpin for LocalizedMessage<C, D, V, S> where
    C: Unpin,
    D: Unpin,
    S: Unpin,
    V: Unpin

impl<C, D, V, S> RefUnwindSafe for LocalizedMessage<C, D, V, S> where
    C: RefUnwindSafe,
    D: RefUnwindSafe,
    S: RefUnwindSafe,
    V: RefUnwindSafe

impl<C, D, V, S> UnwindSafe for LocalizedMessage<C, D, V, S> where
    C: UnwindSafe,
    D: UnwindSafe,
    S: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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