Enum ckb_types::packed::RelayMessageUnion
source · [−]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
sourceimpl RelayMessageUnion
impl RelayMessageUnion
pub const NAME: &'static str = "RelayMessageUnion"
pub fn as_bytes(&self) -> Bytes
pub fn as_slice(&self) -> &[u8]ⓘNotable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8]
pub fn item_id(&self) -> Number
pub fn item_name(&self) -> &str
pub fn as_reader<'r>(&'r self) -> RelayMessageUnionReader<'r>
Trait Implementations
sourceimpl Clone for RelayMessageUnion
impl Clone for RelayMessageUnion
sourcefn clone(&self) -> RelayMessageUnion
fn clone(&self) -> RelayMessageUnion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RelayMessageUnion
impl Debug for RelayMessageUnion
sourceimpl Default for RelayMessageUnion
impl Default for RelayMessageUnion
sourceimpl Display for RelayMessageUnion
impl Display for RelayMessageUnion
sourceimpl From<BlockProposal> for RelayMessageUnion
impl From<BlockProposal> for RelayMessageUnion
sourcefn from(item: BlockProposal) -> Self
fn from(item: BlockProposal) -> Self
Converts to this type from the input type.
sourceimpl From<BlockTransactions> for RelayMessageUnion
impl From<BlockTransactions> for RelayMessageUnion
sourcefn from(item: BlockTransactions) -> Self
fn from(item: BlockTransactions) -> Self
Converts to this type from the input type.
sourceimpl From<CompactBlock> for RelayMessageUnion
impl From<CompactBlock> for RelayMessageUnion
sourcefn from(item: CompactBlock) -> Self
fn from(item: CompactBlock) -> Self
Converts to this type from the input type.
sourceimpl From<GetBlockProposal> for RelayMessageUnion
impl From<GetBlockProposal> for RelayMessageUnion
sourcefn from(item: GetBlockProposal) -> Self
fn from(item: GetBlockProposal) -> Self
Converts to this type from the input type.
sourceimpl From<GetBlockTransactions> for RelayMessageUnion
impl From<GetBlockTransactions> for RelayMessageUnion
sourcefn from(item: GetBlockTransactions) -> Self
fn from(item: GetBlockTransactions) -> Self
Converts to this type from the input type.
sourceimpl From<GetRelayTransactions> for RelayMessageUnion
impl From<GetRelayTransactions> for RelayMessageUnion
sourcefn from(item: GetRelayTransactions) -> Self
fn from(item: GetRelayTransactions) -> Self
Converts to this type from the input type.
sourceimpl From<RelayTransactionHashes> for RelayMessageUnion
impl From<RelayTransactionHashes> for RelayMessageUnion
sourcefn from(item: RelayTransactionHashes) -> Self
fn from(item: RelayTransactionHashes) -> Self
Converts to this type from the input type.
sourceimpl From<RelayTransactions> for RelayMessageUnion
impl From<RelayTransactions> for RelayMessageUnion
sourcefn from(item: RelayTransactions) -> Self
fn from(item: RelayTransactions) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for RelayMessageUnion
impl Send for RelayMessageUnion
impl Sync for RelayMessageUnion
impl Unpin for RelayMessageUnion
impl UnwindSafe for RelayMessageUnion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more