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

Represents a manager of multiple distant server connections

Implementations

Start a new server by binding to the given IP address and one of the ports in the specified range, mapping all connections to use the given codec

Start a new server using the specified path as a unix socket using default unix socket file permissions

Start a new server using the specified path as a unix socket and mode as the unix socket file permissions

Initializes a new instance of [DistantManagerServer] using the provided [UntypedTransport]

Trait Implementations

Type of data received by the server

Type of data sent back by the server

Type of data to store locally tied to the specific connection

Invoked immediately on server start, being provided the raw listener to use (untyped transport), and returning the listener when ready to start (enabling servers that need to tweak a listener to do so) Invoked upon a new connection becoming established, which provides a mutable reference to the data created for the connection. This can be useful in performing some additional initialization on the data prior to it being used anywhere else. Read more

Invoked upon receiving a request from a client. The server should process this request, which can be found in ctx, and send one or more replies in response. Read more

Returns configuration tied to server instance

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Converts reference to Any

Converts mutable reference to Any

Consumes and produces Box<dyn Any>

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. 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.

Should always be Self

Start a new server using the provided listener

Start a new server using the provided listener

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.

Start a new server using the provided listener

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