pub enum PacemakerMessage {
TimeoutVote(TimeoutVote),
AdvanceView(AdvanceView),
}
Variants§
TimeoutVote(TimeoutVote)
AdvanceView(AdvanceView)
Implementations§
source§impl PacemakerMessage
impl PacemakerMessage
pub(crate) fn timeout_vote( me: &Keypair, chain_id: ChainID, view: ViewNumber, highest_tc: Option<TimeoutCertificate>, ) -> PacemakerMessage
pub fn advance_view( progress_certificate: ProgressCertificate, ) -> PacemakerMessage
pub fn chain_id(&self) -> ChainID
pub fn view(&self) -> ViewNumber
pub fn size(&self) -> u64
Trait Implementations§
source§impl BorshDeserialize for PacemakerMessagewhere
TimeoutVote: BorshDeserialize,
AdvanceView: BorshDeserialize,
impl BorshDeserialize for PacemakerMessagewhere
TimeoutVote: BorshDeserialize,
AdvanceView: 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 PacemakerMessagewhere
TimeoutVote: BorshSerialize,
AdvanceView: BorshSerialize,
impl BorshSerialize for PacemakerMessagewhere
TimeoutVote: BorshSerialize,
AdvanceView: BorshSerialize,
source§impl Cacheable for PacemakerMessage
impl Cacheable for PacemakerMessage
source§impl Clone for PacemakerMessage
impl Clone for PacemakerMessage
source§fn clone(&self) -> PacemakerMessage
fn clone(&self) -> PacemakerMessage
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 PacemakerMessagewhere
TimeoutVote: BorshDeserialize,
AdvanceView: BorshDeserialize,
impl EnumExt for PacemakerMessagewhere
TimeoutVote: BorshDeserialize,
AdvanceView: BorshDeserialize,
source§impl From<PacemakerMessage> for Message
impl From<PacemakerMessage> for Message
source§fn from(value: PacemakerMessage) -> Self
fn from(value: PacemakerMessage) -> Self
Converts to this type from the input type.
source§impl Into<ProgressMessage> for PacemakerMessage
impl Into<ProgressMessage> for PacemakerMessage
source§fn into(self) -> ProgressMessage
fn into(self) -> ProgressMessage
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for PacemakerMessage
impl RefUnwindSafe for PacemakerMessage
impl Send for PacemakerMessage
impl Sync for PacemakerMessage
impl Unpin for PacemakerMessage
impl UnwindSafe for PacemakerMessage
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
)