Struct pea2pea::Node [−][src]
pub struct Node(_);
Expand description
The central object responsible for handling all the connections.
Implementations
Creates a new Node
optionally using a given Config
.
Returns the node’s listening address; returns an error if the node was configured to not listen for inbound connections.
Connects to the provided SocketAddr
.
Disconnects from the provided SocketAddr
.
Returns a list containing addresses of active connections.
Returns a reference to the collection of statistics of node’s known peers.
Checks whether the provided address is connected.
Returns the number of active connections.
Returns the number of connections that are currently being set up.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Node
impl !UnwindSafe for Node
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more