pub enum SyncMessageUnion {
GetHeaders(GetHeaders),
SendHeaders(SendHeaders),
GetBlocks(GetBlocks),
SendBlock(SendBlock),
InIBD(InIBD),
}
Variants§
GetHeaders(GetHeaders)
SendHeaders(SendHeaders)
GetBlocks(GetBlocks)
SendBlock(SendBlock)
InIBD(InIBD)
Implementations§
Trait Implementations§
Source§impl Clone for SyncMessageUnion
impl Clone for SyncMessageUnion
Source§fn clone(&self) -> SyncMessageUnion
fn clone(&self) -> SyncMessageUnion
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 Debug for SyncMessageUnion
impl Debug for SyncMessageUnion
Source§impl Default for SyncMessageUnion
impl Default for SyncMessageUnion
Source§fn default() -> SyncMessageUnion
fn default() -> SyncMessageUnion
Returns the “default value” for a type. Read more
Source§impl Display for SyncMessageUnion
impl Display for SyncMessageUnion
Source§impl From<GetBlocks> for SyncMessageUnion
impl From<GetBlocks> for SyncMessageUnion
Source§fn from(item: GetBlocks) -> SyncMessageUnion
fn from(item: GetBlocks) -> SyncMessageUnion
Converts to this type from the input type.
Source§impl From<GetHeaders> for SyncMessageUnion
impl From<GetHeaders> for SyncMessageUnion
Source§fn from(item: GetHeaders) -> SyncMessageUnion
fn from(item: GetHeaders) -> SyncMessageUnion
Converts to this type from the input type.
Source§impl From<InIBD> for SyncMessageUnion
impl From<InIBD> for SyncMessageUnion
Source§fn from(item: InIBD) -> SyncMessageUnion
fn from(item: InIBD) -> SyncMessageUnion
Converts to this type from the input type.
Source§impl From<SendBlock> for SyncMessageUnion
impl From<SendBlock> for SyncMessageUnion
Source§fn from(item: SendBlock) -> SyncMessageUnion
fn from(item: SendBlock) -> SyncMessageUnion
Converts to this type from the input type.
Source§impl From<SendHeaders> for SyncMessageUnion
impl From<SendHeaders> for SyncMessageUnion
Source§fn from(item: SendHeaders) -> SyncMessageUnion
fn from(item: SendHeaders) -> SyncMessageUnion
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for SyncMessageUnion
impl RefUnwindSafe for SyncMessageUnion
impl Send for SyncMessageUnion
impl Sync for SyncMessageUnion
impl Unpin for SyncMessageUnion
impl UnwindSafe for SyncMessageUnion
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
)