pub enum NodeRequest {
GetBlock((Vec<BlockHash>, bool)),
GetHeaders(Vec<BlockHash>),
GetAddresses,
Shutdown,
BroadcastTransaction(Txid),
MempoolTransaction(Txid),
SendAddresses(Vec<AddrV2Message>),
GetUtreexoState((BlockHash, u32)),
GetFilter((BlockHash, u32)),
Ping,
}Available on non-WebAssembly only.
Expand description
Sent from node to peers, usually to request something
Variants§
GetBlock((Vec<BlockHash>, bool))
Get this block’s data
GetHeaders(Vec<BlockHash>)
Asks peer for headers
GetAddresses
Ask for other peers addresses
Shutdown
Asks this peer to shutdown
BroadcastTransaction(Txid)
Sends a transaction to peers
MempoolTransaction(Txid)
Ask for an unconfirmed transaction
SendAddresses(Vec<AddrV2Message>)
Sends know addresses to our peers
GetUtreexoState((BlockHash, u32))
Requests the peer to send us the utreexo state for a given block
GetFilter((BlockHash, u32))
Requests the peer to send us the compact block filters for blocks, starting at a given block hash and height.
Ping
Sends a ping to the peer to check if it’s alive
Trait Implementations§
Source§impl Clone for NodeRequest
impl Clone for NodeRequest
Source§fn clone(&self) -> NodeRequest
fn clone(&self) -> NodeRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeRequest
impl Debug for NodeRequest
Source§impl Hash for NodeRequest
impl Hash for NodeRequest
Source§impl PartialEq for NodeRequest
impl PartialEq for NodeRequest
impl StructuralPartialEq for NodeRequest
Auto Trait Implementations§
impl Freeze for NodeRequest
impl RefUnwindSafe for NodeRequest
impl Send for NodeRequest
impl Sync for NodeRequest
impl Unpin for NodeRequest
impl UnwindSafe for NodeRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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 more