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§fn default() -> RelayMessageUnion
fn default() -> RelayMessageUnion
Returns the “default value” for a type. Read more
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) -> RelayMessageUnion
fn from(item: BlockProposal) -> RelayMessageUnion
Converts to this type from the input type.
Source§impl From<BlockTransactions> for RelayMessageUnion
impl From<BlockTransactions> for RelayMessageUnion
Source§fn from(item: BlockTransactions) -> RelayMessageUnion
fn from(item: BlockTransactions) -> RelayMessageUnion
Converts to this type from the input type.
Source§impl From<CompactBlock> for RelayMessageUnion
impl From<CompactBlock> for RelayMessageUnion
Source§fn from(item: CompactBlock) -> RelayMessageUnion
fn from(item: CompactBlock) -> RelayMessageUnion
Converts to this type from the input type.
Source§impl From<GetBlockProposal> for RelayMessageUnion
impl From<GetBlockProposal> for RelayMessageUnion
Source§fn from(item: GetBlockProposal) -> RelayMessageUnion
fn from(item: GetBlockProposal) -> RelayMessageUnion
Converts to this type from the input type.
Source§impl From<GetBlockTransactions> for RelayMessageUnion
impl From<GetBlockTransactions> for RelayMessageUnion
Source§fn from(item: GetBlockTransactions) -> RelayMessageUnion
fn from(item: GetBlockTransactions) -> RelayMessageUnion
Converts to this type from the input type.
Source§impl From<GetRelayTransactions> for RelayMessageUnion
impl From<GetRelayTransactions> for RelayMessageUnion
Source§fn from(item: GetRelayTransactions) -> RelayMessageUnion
fn from(item: GetRelayTransactions) -> RelayMessageUnion
Converts to this type from the input type.
Source§impl From<RelayTransactionHashes> for RelayMessageUnion
impl From<RelayTransactionHashes> for RelayMessageUnion
Source§fn from(item: RelayTransactionHashes) -> RelayMessageUnion
fn from(item: RelayTransactionHashes) -> RelayMessageUnion
Converts to this type from the input type.
Source§impl From<RelayTransactions> for RelayMessageUnion
impl From<RelayTransactions> for RelayMessageUnion
Source§fn from(item: RelayTransactions) -> RelayMessageUnion
fn from(item: RelayTransactions) -> RelayMessageUnion
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
)