pub struct Proposal {
pub number: BlockNumber,
pub payload: Payload,
}
Expand description
A payload of a proposed block which is not known to be finalized yet. Replicas have to persist such proposed payloads for liveness: consensus may finalize a block without knowing a payload in case of reproposals. Currently we do not store the BlockHeader, because it is always available in the LeaderPrepare message.
Fields§
§number: BlockNumber
Number of a block for which this payload has been proposed.
payload: Payload
Proposed payload.
Trait Implementations§
Source§impl Distribution<Proposal> for Standard
impl Distribution<Proposal> for Standard
impl Eq for Proposal
impl StructuralPartialEq for Proposal
Auto Trait Implementations§
impl Freeze for Proposal
impl RefUnwindSafe for Proposal
impl Send for Proposal
impl Sync for Proposal
impl Unpin for Proposal
impl UnwindSafe for Proposal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.