pub struct DistantApiServer<T, D> where
    T: DistantApi<LocalData = D>, 
{ /* private fields */ }
Expand description

Represents a server that leverages an API compliant with distant

Implementations

Creates a new server using the LocalDistantApi implementation

Trait Implementations

Overridden to leverage DistantApi implementation of config

Overridden to leverage DistantApi implementation of on_accept

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 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

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