Struct floresta_wire::node_interface::NodeInterface
source · pub struct NodeInterface { /* private fields */ }
Implementations§
source§impl NodeInterface
impl NodeInterface
pub fn send_answer(&self, request: UserRequest, answer: Option<NodeResponse>)
Trait Implementations§
source§impl Debug for NodeInterface
impl Debug for NodeInterface
source§impl NodeMethods for NodeInterface
impl NodeMethods for NodeInterface
fn connect(&self, addr: IpAddr, port: u16) -> Result<bool, RecvError>
fn get_block(&self, block: BlockHash) -> Result<Option<Block>, RecvError>
fn get_utreexo_block( &self, block: BlockHash ) -> Result<Option<UtreexoBlock>, RecvError>
fn get_mempool_transaction( &self, txid: Txid ) -> Result<Option<Transaction>, RecvError>
fn get_peer_info(&self) -> Result<Vec<PeerInfo>, RecvError>
Auto Trait Implementations§
impl RefUnwindSafe for NodeInterface
impl Send for NodeInterface
impl Sync for NodeInterface
impl Unpin for NodeInterface
impl UnwindSafe for NodeInterface
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