pub enum Message {
ProgressMessage(ProgressMessage),
BlockSyncMessage(BlockSyncMessage),
}
Variants§
ProgressMessage(ProgressMessage)
BlockSyncMessage(BlockSyncMessage)
Trait Implementations§
source§impl BorshDeserialize for Messagewhere
ProgressMessage: BorshDeserialize,
BlockSyncMessage: BorshDeserialize,
impl BorshDeserialize for Messagewhere
ProgressMessage: BorshDeserialize,
BlockSyncMessage: 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 Messagewhere
ProgressMessage: BorshSerialize,
BlockSyncMessage: BorshSerialize,
impl BorshSerialize for Messagewhere
ProgressMessage: BorshSerialize,
BlockSyncMessage: BorshSerialize,
source§impl EnumExt for Messagewhere
ProgressMessage: BorshDeserialize,
BlockSyncMessage: BorshDeserialize,
impl EnumExt for Messagewhere
ProgressMessage: BorshDeserialize,
BlockSyncMessage: BorshDeserialize,
source§impl From<BlockSyncAdvertiseMessage> for Message
impl From<BlockSyncAdvertiseMessage> for Message
source§fn from(value: BlockSyncAdvertiseMessage) -> Self
fn from(value: BlockSyncAdvertiseMessage) -> Self
Converts to this type from the input type.
source§impl From<BlockSyncRequest> for Message
impl From<BlockSyncRequest> for Message
source§fn from(value: BlockSyncRequest) -> Self
fn from(value: BlockSyncRequest) -> Self
Converts to this type from the input type.
source§impl From<BlockSyncResponse> for Message
impl From<BlockSyncResponse> for Message
source§fn from(value: BlockSyncResponse) -> Self
fn from(value: BlockSyncResponse) -> Self
Converts to this type from the input type.
source§impl From<HotStuffMessage> for Message
impl From<HotStuffMessage> for Message
source§fn from(value: HotStuffMessage) -> Self
fn from(value: HotStuffMessage) -> Self
Converts to this type from the input type.
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.
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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
)