[][src]Struct nimiq_messages::MessageNotifier

pub struct MessageNotifier {
    pub version: RwLock<PassThroughNotifier<'static, VersionMessage>>,
    pub ver_ack: RwLock<PassThroughNotifier<'static, VerAckMessage>>,
    pub inv: RwLock<PassThroughNotifier<'static, Vec<InvVector>>>,
    pub get_data: RwLock<PassThroughNotifier<'static, Vec<InvVector>>>,
    pub get_header: RwLock<PassThroughNotifier<'static, Vec<InvVector>>>,
    pub not_found: RwLock<PassThroughNotifier<'static, Vec<InvVector>>>,
    pub block: RwLock<PassThroughNotifier<'static, Block>>,
    pub header: RwLock<PassThroughNotifier<'static, BlockHeader>>,
    pub tx: RwLock<PassThroughNotifier<'static, TxMessage>>,
    pub get_blocks: RwLock<PassThroughNotifier<'static, GetBlocksMessage>>,
    pub mempool: RwLock<PassThroughNotifier<'static, ()>>,
    pub reject: RwLock<PassThroughNotifier<'static, RejectMessage>>,
    pub subscribe: RwLock<PassThroughNotifier<'static, Subscription>>,
    pub addr: RwLock<PassThroughNotifier<'static, AddrMessage>>,
    pub get_addr: RwLock<PassThroughNotifier<'static, GetAddrMessage>>,
    pub ping: RwLock<PassThroughNotifier<'static, u32>>,
    pub pong: RwLock<PassThroughNotifier<'static, u32>>,
    pub signal: RwLock<PassThroughNotifier<'static, SignalMessage>>,
    pub get_chain_proof: RwLock<PassThroughNotifier<'static, ()>>,
    pub chain_proof: RwLock<PassThroughNotifier<'static, ChainProof>>,
    pub get_accounts_proof: RwLock<PassThroughNotifier<'static, GetAccountsProofMessage>>,
    pub get_accounts_tree_chunk: RwLock<PassThroughNotifier<'static, GetAccountsTreeChunkMessage>>,
    pub accounts_tree_chunk: RwLock<PassThroughNotifier<'static, AccountsTreeChunkMessage>>,
    pub accounts_proof: RwLock<PassThroughNotifier<'static, AccountsProofMessage>>,
    pub get_transactions_proof: RwLock<PassThroughNotifier<'static, GetTransactionsProofMessage>>,
    pub transactions_proof: RwLock<PassThroughNotifier<'static, TransactionsProofMessage>>,
    pub get_transaction_receipts: RwLock<PassThroughNotifier<'static, GetTransactionReceiptsMessage>>,
    pub transaction_receipts: RwLock<PassThroughNotifier<'static, TransactionReceiptsMessage>>,
    pub get_block_proof: RwLock<PassThroughNotifier<'static, GetBlockProofMessage>>,
    pub block_proof: RwLock<PassThroughNotifier<'static, BlockProofMessage>>,
    pub get_head: RwLock<PassThroughNotifier<'static, ()>>,
    pub head: RwLock<PassThroughNotifier<'static, BlockHeader>>,
}

Fields

version: RwLock<PassThroughNotifier<'static, VersionMessage>>ver_ack: RwLock<PassThroughNotifier<'static, VerAckMessage>>inv: RwLock<PassThroughNotifier<'static, Vec<InvVector>>>get_data: RwLock<PassThroughNotifier<'static, Vec<InvVector>>>get_header: RwLock<PassThroughNotifier<'static, Vec<InvVector>>>not_found: RwLock<PassThroughNotifier<'static, Vec<InvVector>>>block: RwLock<PassThroughNotifier<'static, Block>>header: RwLock<PassThroughNotifier<'static, BlockHeader>>tx: RwLock<PassThroughNotifier<'static, TxMessage>>get_blocks: RwLock<PassThroughNotifier<'static, GetBlocksMessage>>mempool: RwLock<PassThroughNotifier<'static, ()>>reject: RwLock<PassThroughNotifier<'static, RejectMessage>>subscribe: RwLock<PassThroughNotifier<'static, Subscription>>addr: RwLock<PassThroughNotifier<'static, AddrMessage>>get_addr: RwLock<PassThroughNotifier<'static, GetAddrMessage>>ping: RwLock<PassThroughNotifier<'static, u32>>pong: RwLock<PassThroughNotifier<'static, u32>>signal: RwLock<PassThroughNotifier<'static, SignalMessage>>get_chain_proof: RwLock<PassThroughNotifier<'static, ()>>chain_proof: RwLock<PassThroughNotifier<'static, ChainProof>>get_accounts_proof: RwLock<PassThroughNotifier<'static, GetAccountsProofMessage>>get_accounts_tree_chunk: RwLock<PassThroughNotifier<'static, GetAccountsTreeChunkMessage>>accounts_tree_chunk: RwLock<PassThroughNotifier<'static, AccountsTreeChunkMessage>>accounts_proof: RwLock<PassThroughNotifier<'static, AccountsProofMessage>>get_transactions_proof: RwLock<PassThroughNotifier<'static, GetTransactionsProofMessage>>transactions_proof: RwLock<PassThroughNotifier<'static, TransactionsProofMessage>>get_transaction_receipts: RwLock<PassThroughNotifier<'static, GetTransactionReceiptsMessage>>transaction_receipts: RwLock<PassThroughNotifier<'static, TransactionReceiptsMessage>>get_block_proof: RwLock<PassThroughNotifier<'static, GetBlockProofMessage>>block_proof: RwLock<PassThroughNotifier<'static, BlockProofMessage>>get_head: RwLock<PassThroughNotifier<'static, ()>>head: RwLock<PassThroughNotifier<'static, BlockHeader>>

Methods

impl MessageNotifier[src]

pub fn new() -> Self[src]

pub fn notify(&self, msg: Message)[src]

Auto Trait Implementations

Blanket Implementations

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

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

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