[−][src]Enum ckb_types::packed::RelayMessageUnion
Variants
CompactBlock(CompactBlock)
RelayTransactions(RelayTransactions)
RelayTransactionHashes(RelayTransactionHashes)
GetRelayTransactions(GetRelayTransactions)
GetBlockTransactions(GetBlockTransactions)
BlockTransactions(BlockTransactions)
GetBlockProposal(GetBlockProposal)
BlockProposal(BlockProposal)
Implementations
impl RelayMessageUnion
[src]
pub const NAME: &'static str
[src]
pub fn as_bytes(&self) -> Bytes
[src]
pub fn as_slice(&self) -> &[u8]
[src]
pub fn item_id(&self) -> Number
[src]
pub fn item_name(&self) -> &str
[src]
pub fn as_reader<'r>(&'r self) -> RelayMessageUnionReader<'r>
[src]
Trait Implementations
impl Clone for RelayMessageUnion
[src]
fn clone(&self) -> RelayMessageUnion
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RelayMessageUnion
[src]
impl Default for RelayMessageUnion
[src]
impl Display for RelayMessageUnion
[src]
impl From<BlockProposal> for RelayMessageUnion
[src]
fn from(item: BlockProposal) -> Self
[src]
impl From<BlockTransactions> for RelayMessageUnion
[src]
fn from(item: BlockTransactions) -> Self
[src]
impl From<CompactBlock> for RelayMessageUnion
[src]
fn from(item: CompactBlock) -> Self
[src]
impl From<GetBlockProposal> for RelayMessageUnion
[src]
fn from(item: GetBlockProposal) -> Self
[src]
impl From<GetBlockTransactions> for RelayMessageUnion
[src]
fn from(item: GetBlockTransactions) -> Self
[src]
impl From<GetRelayTransactions> for RelayMessageUnion
[src]
fn from(item: GetRelayTransactions) -> Self
[src]
impl From<RelayTransactionHashes> for RelayMessageUnion
[src]
fn from(item: RelayTransactionHashes) -> Self
[src]
impl From<RelayTransactions> for RelayMessageUnion
[src]
fn from(item: RelayTransactions) -> Self
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,