Enum floresta_wire::node::NodeRequest
source · 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)),
}
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))
GetFilter((BlockHash, u32))
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<NodeRequest> for NodeRequest
impl PartialEq<NodeRequest> for NodeRequest
source§fn eq(&self, other: &NodeRequest) -> bool
fn eq(&self, other: &NodeRequest) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NodeRequest
Auto Trait Implementations§
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