pub enum Message {
ProgressMessage(ProgressMessage),
BlockSyncMessage(BlockSyncMessage),
}
Expand description
All message variants used in HotStuff-rs.
Variants§
ProgressMessage(ProgressMessage)
See: ProgressMessage
.
BlockSyncMessage(BlockSyncMessage)
See: BlockSyncMessage
.
Trait Implementations§
Source§impl BorshDeserialize for Message
impl BorshDeserialize for Message
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§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.
Source§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 Message
impl BorshSerialize for Message
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