pub struct Node { /* private fields */ }
Expand description

Unreliable UDP transport layer

Implementations

Create new ADNL node on the specified address

ADNL node options

Instant metrics

Starts listening for incoming packets

Stops all spawned listeners

Computes ADNL query timeout, based on the roundtrip and the configured options

Socket address of the node

Node start timestamp

Builds new address list for the current ADNL node with no expiration date

Searches for the stored ADNL key by it’s short id

See Node::key_by_tag

Searches for the stored ADNL key by it’s tag

See Node::key_by_id

Adds new remote peer. Returns whether the peer was added

See Node::remove_peer

Removes remote peer.

NOTE: This method will return an error if there is no peers table for the specified local id.

See Node::add_peer

Searches for remote peer ip in the known peers

Matches entries with peer id by ip

NOTE: It is a quite expensive method that iterates over all peers and may block new peers from being added during the execution time. Use it with caution.

ADNL query without prefix to the remote peer.

NOTE: In case of timeout returns Ok(None)

ADNL query with prefix to the remote peer

NOTE: In case of timeout returns Ok(None)

ADNL query to the remote peer

NOTE: In case of timeout returns Ok(None)

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Extract a subset of the possible types in a coproduct (or get the remaining possibilities) Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Performs the indexed conversion.

Should always be Self

Consumes the current HList and returns an HList with the requested shape. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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