pub enum RelayMessageUnion {
CompactBlock(CompactBlock),
RelayTransactions(RelayTransactions),
RelayTransactionHashes(RelayTransactionHashes),
GetRelayTransactions(GetRelayTransactions),
GetBlockTransactions(GetBlockTransactions),
BlockTransactions(BlockTransactions),
GetBlockProposal(GetBlockProposal),
BlockProposal(BlockProposal),
}
Variants§
CompactBlock(CompactBlock)
RelayTransactions(RelayTransactions)
RelayTransactionHashes(RelayTransactionHashes)
GetRelayTransactions(GetRelayTransactions)
GetBlockTransactions(GetBlockTransactions)
BlockTransactions(BlockTransactions)
GetBlockProposal(GetBlockProposal)
BlockProposal(BlockProposal)
Implementations§
Trait Implementations§
Source§impl Clone for RelayMessageUnion
impl Clone for RelayMessageUnion
Source§fn clone(&self) -> RelayMessageUnion
fn clone(&self) -> RelayMessageUnion
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 RelayMessageUnion
impl Debug for RelayMessageUnion
Source§impl Default for RelayMessageUnion
impl Default for RelayMessageUnion
Source§impl Display for RelayMessageUnion
impl Display for RelayMessageUnion
Source§impl From<BlockProposal> for RelayMessageUnion
impl From<BlockProposal> for RelayMessageUnion
Source§fn from(item: BlockProposal) -> Self
fn from(item: BlockProposal) -> Self
Converts to this type from the input type.
Source§impl From<BlockTransactions> for RelayMessageUnion
impl From<BlockTransactions> for RelayMessageUnion
Source§fn from(item: BlockTransactions) -> Self
fn from(item: BlockTransactions) -> Self
Converts to this type from the input type.
Source§impl From<CompactBlock> for RelayMessageUnion
impl From<CompactBlock> for RelayMessageUnion
Source§fn from(item: CompactBlock) -> Self
fn from(item: CompactBlock) -> Self
Converts to this type from the input type.
Source§impl From<GetBlockProposal> for RelayMessageUnion
impl From<GetBlockProposal> for RelayMessageUnion
Source§fn from(item: GetBlockProposal) -> Self
fn from(item: GetBlockProposal) -> Self
Converts to this type from the input type.
Source§impl From<GetBlockTransactions> for RelayMessageUnion
impl From<GetBlockTransactions> for RelayMessageUnion
Source§fn from(item: GetBlockTransactions) -> Self
fn from(item: GetBlockTransactions) -> Self
Converts to this type from the input type.
Source§impl From<GetRelayTransactions> for RelayMessageUnion
impl From<GetRelayTransactions> for RelayMessageUnion
Source§fn from(item: GetRelayTransactions) -> Self
fn from(item: GetRelayTransactions) -> Self
Converts to this type from the input type.
Source§impl From<RelayTransactionHashes> for RelayMessageUnion
impl From<RelayTransactionHashes> for RelayMessageUnion
Source§fn from(item: RelayTransactionHashes) -> Self
fn from(item: RelayTransactionHashes) -> Self
Converts to this type from the input type.
Source§impl From<RelayTransactions> for RelayMessageUnion
impl From<RelayTransactions> for RelayMessageUnion
Source§fn from(item: RelayTransactions) -> Self
fn from(item: RelayTransactions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for RelayMessageUnion
impl RefUnwindSafe for RelayMessageUnion
impl Send for RelayMessageUnion
impl Sync for RelayMessageUnion
impl Unpin for RelayMessageUnion
impl UnwindSafe for RelayMessageUnion
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
)