[][src]Struct overlord::types::Proposal

pub struct Proposal<T: Codec> {
    pub height: u64,
    pub round: u64,
    pub content: T,
    pub block_hash: Hash,
    pub lock: Option<PoLC>,
    pub proposer: Address,
}

A proposal

Fields

height: u64

Height of the proposal.

round: u64

Round of the proposal.

content: T

Proposal content.

block_hash: Hash

Proposal block hash.

lock: Option<PoLC>

Optional field. If the proposal has a PoLC, this contains the lock round and lock votes.

proposer: Address

Proposer address.

Trait Implementations

impl<T: Clone + Codec> Clone for Proposal<T>[src]

impl<T: Debug + Codec> Debug for Proposal<T>[src]

impl<T: Codec> Decodable for Proposal<T>[src]

impl<T: Codec> Display for Proposal<T>[src]

impl<T: Codec> Encodable for Proposal<T>[src]

impl<T: Eq + Codec> Eq for Proposal<T>[src]

impl<T: PartialEq + Codec> PartialEq<Proposal<T>> for Proposal<T>[src]

impl<T: Codec> StructuralEq for Proposal<T>[src]

impl<T: Codec> StructuralPartialEq for Proposal<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Proposal<T> where
    T: RefUnwindSafe

impl<T> Send for Proposal<T>

impl<T> Sync for Proposal<T> where
    T: Sync

impl<T> Unpin for Proposal<T> where
    T: Unpin

impl<T> UnwindSafe for Proposal<T> where
    T: UnwindSafe

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> Cloneable for T where
    T: 'static + Send + Sync + Debug + DynClone
[src]

impl<T> DynClone for T where
    T: Clone
[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> ToString for T where
    T: Display + ?Sized
[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.