pub enum ProgressCertificate {
TimeoutCertificate(TimeoutCertificate),
PhaseCertificate(PhaseCertificate),
}
Expand description
Proof that either:
- A quorum made a decision in the current view (
PhaseCertificate
), or - A quorum voted for terminating the current view on timing out (
TimeoutCertificate
).
Variants§
TimeoutCertificate(TimeoutCertificate)
PhaseCertificate(PhaseCertificate)
Implementations§
Trait Implementations§
source§impl BorshDeserialize for ProgressCertificatewhere
TimeoutCertificate: BorshDeserialize,
PhaseCertificate: BorshDeserialize,
impl BorshDeserialize for ProgressCertificatewhere
TimeoutCertificate: BorshDeserialize,
PhaseCertificate: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for ProgressCertificatewhere
TimeoutCertificate: BorshSerialize,
PhaseCertificate: BorshSerialize,
impl BorshSerialize for ProgressCertificatewhere
TimeoutCertificate: BorshSerialize,
PhaseCertificate: BorshSerialize,
source§impl Clone for ProgressCertificate
impl Clone for ProgressCertificate
source§fn clone(&self) -> ProgressCertificate
fn clone(&self) -> ProgressCertificate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl EnumExt for ProgressCertificatewhere
TimeoutCertificate: BorshDeserialize,
PhaseCertificate: BorshDeserialize,
impl EnumExt for ProgressCertificatewhere
TimeoutCertificate: BorshDeserialize,
PhaseCertificate: BorshDeserialize,
source§impl From<PhaseCertificate> for ProgressCertificate
impl From<PhaseCertificate> for ProgressCertificate
source§fn from(value: PhaseCertificate) -> Self
fn from(value: PhaseCertificate) -> Self
Converts to this type from the input type.
source§impl From<TimeoutCertificate> for ProgressCertificate
impl From<TimeoutCertificate> for ProgressCertificate
source§fn from(value: TimeoutCertificate) -> Self
fn from(value: TimeoutCertificate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProgressCertificate
impl RefUnwindSafe for ProgressCertificate
impl Send for ProgressCertificate
impl Sync for ProgressCertificate
impl Unpin for ProgressCertificate
impl UnwindSafe for ProgressCertificate
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)