[][src]Enum nimiq_messages::Message

pub enum Message {
    Version(Box<VersionMessage>),
    Inv(Vec<InvVector>),
    GetData(Vec<InvVector>),
    GetHeader(Vec<InvVector>),
    NotFound(Vec<InvVector>),
    Block(Box<Block>),
    Header(Box<BlockHeader>),
    Tx(Box<TxMessage>),
    GetBlocks(Box<GetBlocksMessage>),
    Mempool,
    Reject(Box<RejectMessage>),
    Subscribe(Box<Subscription>),
    Addr(Box<AddrMessage>),
    GetAddr(Box<GetAddrMessage>),
    Ping(u32),
    Pong(u32),
    Signal(Box<SignalMessage>),
    GetChainProof,
    ChainProof(Box<ChainProof>),
    GetAccountsProof(Box<GetAccountsProofMessage>),
    AccountsProof(Box<AccountsProofMessage>),
    GetAccountsTreeChunk(Box<GetAccountsTreeChunkMessage>),
    AccountsTreeChunk(Box<AccountsTreeChunkMessage>),
    GetTransactionsProof(Box<GetTransactionsProofMessage>),
    TransactionsProof(Box<TransactionsProofMessage>),
    GetTransactionReceipts(Box<GetTransactionReceiptsMessage>),
    TransactionReceipts(Box<TransactionReceiptsMessage>),
    GetBlockProof(Box<GetBlockProofMessage>),
    BlockProof(Box<BlockProofMessage>),
    GetHead,
    Head(Box<BlockHeader>),
    VerAck(Box<VerAckMessage>),
}

Variants

GetData(Vec<InvVector>)
GetHeader(Vec<InvVector>)
NotFound(Vec<InvVector>)
Block(Box<Block>)
Header(Box<BlockHeader>)
GetBlocks(Box<GetBlocksMessage>)
Mempool
Subscribe(Box<Subscription>)
Ping(u32)
Pong(u32)
GetChainProof
ChainProof(Box<ChainProof>)
GetAccountsProof(Box<GetAccountsProofMessage>)
AccountsProof(Box<AccountsProofMessage>)
GetAccountsTreeChunk(Box<GetAccountsTreeChunkMessage>)
AccountsTreeChunk(Box<AccountsTreeChunkMessage>)
GetTransactionsProof(Box<GetTransactionsProofMessage>)
TransactionsProof(Box<TransactionsProofMessage>)
GetTransactionReceipts(Box<GetTransactionReceiptsMessage>)
TransactionReceipts(Box<TransactionReceiptsMessage>)
GetBlockProof(Box<GetBlockProofMessage>)
BlockProof(Box<BlockProofMessage>)
GetHead

Methods

impl Message[src]

Trait Implementations

impl Clone for Message[src]

impl Debug for Message[src]

impl Deserialize for Message[src]

impl Serialize for Message[src]

Auto Trait Implementations

impl Send for Message

impl Sync for Message

impl Unpin for Message

impl UnwindSafe for Message

impl RefUnwindSafe for Message

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T