Enum rhododendron::LocalizedMessage [−][src]
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]
impl<C, D, V, S> LocalizedMessage<C, D, V, S>
pub fn sender(&self) -> &V
[src]
pub fn sender(&self) -> &V
Extract the sender.
pub fn round_number(&self) -> u32
[src]
pub fn round_number(&self) -> u32
Extract the round number.
Trait Implementations
impl<C: Debug, D: Debug, V: Debug, S: Debug> Debug for LocalizedMessage<C, D, V, S>
[src]
impl<C: Debug, D: Debug, V: Debug, S: Debug> Debug for LocalizedMessage<C, D, V, S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<C: Clone, D: Clone, V: Clone, S: Clone> Clone for LocalizedMessage<C, D, V, S>
[src]
impl<C: Clone, D: Clone, V: Clone, S: Clone> Clone for LocalizedMessage<C, D, V, S>
fn clone(&self) -> LocalizedMessage<C, D, V, S>
[src]
fn clone(&self) -> LocalizedMessage<C, D, V, S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[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, D, V, S> From<LocalizedVote<D, V, S>> for LocalizedMessage<C, D, V, S>
fn from(vote: LocalizedVote<D, V, S>) -> Self
[src]
fn from(vote: LocalizedVote<D, V, S>) -> Self
Performs the conversion.