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

IO Service with networking Message defines a notification data type.

Implementations

Starts IO event loop

Register a new protocol handler with the event loop.

Returns host identifier string as advertised to other peers

Returns underlying io service.

Returns the number of peers allowed.

Returns external url if available.

Returns external url if available.

Start network IO.

In case of error, also returns the listening address for better error reporting.

Stop network IO.

Get a list of all connected peers by id.

Try to add a reserved peer.

Try to remove a reserved peer.

Set the non-reserved peer mode.

Executes action in the network context

Evaluates function in the network context

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

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self

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.