pub struct BasicNetworkPrimitives<N: NodePrimitives, Pooled, NewBlock = NewBlock<BlockTy<N>>>(/* private fields */);Expand description
Basic implementation of NetworkPrimitives combining [NodePrimitives] and a pooled
transaction.
Trait Implementations§
Source§impl<N: Clone + NodePrimitives, Pooled: Clone, NewBlock: Clone> Clone for BasicNetworkPrimitives<N, Pooled, NewBlock>
impl<N: Clone + NodePrimitives, Pooled: Clone, NewBlock: Clone> Clone for BasicNetworkPrimitives<N, Pooled, NewBlock>
impl<N: Copy + NodePrimitives, Pooled: Copy, NewBlock: Copy> Copy for BasicNetworkPrimitives<N, Pooled, NewBlock>
Source§impl<N: Debug + NodePrimitives, Pooled: Debug, NewBlock: Debug> Debug for BasicNetworkPrimitives<N, Pooled, NewBlock>
impl<N: Debug + NodePrimitives, Pooled: Debug, NewBlock: Debug> Debug for BasicNetworkPrimitives<N, Pooled, NewBlock>
Source§impl<N: Default + NodePrimitives, Pooled: Default, NewBlock: Default> Default for BasicNetworkPrimitives<N, Pooled, NewBlock>
impl<N: Default + NodePrimitives, Pooled: Default, NewBlock: Default> Default for BasicNetworkPrimitives<N, Pooled, NewBlock>
impl<N: Eq + NodePrimitives, Pooled: Eq, NewBlock: Eq> Eq for BasicNetworkPrimitives<N, Pooled, NewBlock>
Source§impl<N: Hash + NodePrimitives, Pooled: Hash, NewBlock: Hash> Hash for BasicNetworkPrimitives<N, Pooled, NewBlock>
impl<N: Hash + NodePrimitives, Pooled: Hash, NewBlock: Hash> Hash for BasicNetworkPrimitives<N, Pooled, NewBlock>
Source§impl<N, Pooled, NewBlock> NetworkPrimitives for BasicNetworkPrimitives<N, Pooled, NewBlock>where
N: NodePrimitives,
Pooled: SignedTransaction + TryFrom<N::SignedTx> + 'static,
NewBlock: NewBlockPayload<Block = N::Block>,
impl<N, Pooled, NewBlock> NetworkPrimitives for BasicNetworkPrimitives<N, Pooled, NewBlock>where
N: NodePrimitives,
Pooled: SignedTransaction + TryFrom<N::SignedTx> + 'static,
NewBlock: NewBlockPayload<Block = N::Block>,
Source§type BlockHeader = <N as NodePrimitives>::BlockHeader
type BlockHeader = <N as NodePrimitives>::BlockHeader
The block header type.
Source§type BroadcastedTransaction = <N as NodePrimitives>::SignedTx
type BroadcastedTransaction = <N as NodePrimitives>::SignedTx
The transaction type which peers announce in
Transactions messages. Read moreSource§type PooledTransaction = Pooled
type PooledTransaction = Pooled
The transaction type which peers return in
PooledTransactions messages. Read moreSource§type Receipt = <N as NodePrimitives>::Receipt
type Receipt = <N as NodePrimitives>::Receipt
The transaction type which peers return in
GetReceipts messages.Source§type NewBlockPayload = NewBlock
type NewBlockPayload = NewBlock
The payload type for the
NewBlock message.Source§impl<N: PartialEq + NodePrimitives, Pooled: PartialEq, NewBlock: PartialEq> PartialEq for BasicNetworkPrimitives<N, Pooled, NewBlock>
impl<N: PartialEq + NodePrimitives, Pooled: PartialEq, NewBlock: PartialEq> PartialEq for BasicNetworkPrimitives<N, Pooled, NewBlock>
impl<N: PartialEq + NodePrimitives, Pooled: PartialEq, NewBlock: PartialEq> StructuralPartialEq for BasicNetworkPrimitives<N, Pooled, NewBlock>
Auto Trait Implementations§
impl<N, Pooled, NewBlock> Freeze for BasicNetworkPrimitives<N, Pooled, NewBlock>
impl<N, Pooled, NewBlock> RefUnwindSafe for BasicNetworkPrimitives<N, Pooled, NewBlock>
impl<N, Pooled, NewBlock> Send for BasicNetworkPrimitives<N, Pooled, NewBlock>
impl<N, Pooled, NewBlock> Sync for BasicNetworkPrimitives<N, Pooled, NewBlock>
impl<N, Pooled, NewBlock> Unpin for BasicNetworkPrimitives<N, Pooled, NewBlock>
impl<N, Pooled, NewBlock> UnsafeUnpin for BasicNetworkPrimitives<N, Pooled, NewBlock>
impl<N, Pooled, NewBlock> UnwindSafe for BasicNetworkPrimitives<N, Pooled, NewBlock>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<N, T> NetPrimitivesFor<N> for Twhere
N: NodePrimitives,
T: NetworkPrimitives<BlockHeader = <N as NodePrimitives>::BlockHeader, BlockBody = <N as NodePrimitives>::BlockBody, Block = <N as NodePrimitives>::Block, Receipt = <N as NodePrimitives>::Receipt>,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘwhere
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes