pub struct Server<Listener, Source> { /* private fields */ }
Expand description

An RTR server.

The server takes a stream socket listener – a stream of new sockets – and a VRP source and serves RTR data. In order to also serve notifications whenever new data is available, the server uses a notification dispatch system via the Dispatch system.

Implementations

Creates a new RTR server from its components.

Runs the server.

The asynchronous function will return successfully when the listener socket (which is a stream over new connectons) finishes. It will return with an error if the listener socket errors out.

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.

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.