[−][src]Enum networking::NetworkRequest
NetworkRequest provides the inbound interface to the high level 'the rest of the network' abstraction.
Variants
Requests peer information
Requests all blocks with provided hashes
Requests all transactions with provided hashes
Requests headers starting with the first header in the vec. If max_responses is not provided, the Service will attempt to return every header up to the current tip.
last_known_headers should be ordered from newest to oldest (i.e. from now toward Genesis block) if it contains more than one item
PushTransaction(Transaction)
Pushes a transaction to the network using unsolicited Tx Message
Advertises to peers that each transaction is available using an inv message containing the Tx Hash.
Advertises to peers that a block is available using an inv message containing its hash
Request a peer's view of the mempool. By default, the Service should aggregate responses from a small subset of peers.
Auto Trait Implementations
impl RefUnwindSafe for NetworkRequest
impl Send for NetworkRequest
impl Sync for NetworkRequest
impl Unpin for NetworkRequest
impl UnwindSafe for NetworkRequest
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> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,