Struct distant_net::server::Server

source ·
pub struct Server<T> { /* private fields */ }
Expand description

Represents a server that can be used to receive requests & send responses to clients.

Implementations

Consume Server and produce a builder for a TCP variant.

Consume Server and produce a builder for a Unix socket variant.

Creates a new Server, starting with a default configuration, no authentication methods, and no ServerHandler.

Creates a new TcpServerBuilder that is used to construct a Server.

Creates a new UnixSocketServerBuilder that is used to construct a Server.

Consumes the current server, replacing its config with config and returning it.

Consumes the current server, replacing its handler with handler and returning it.

Consumes the current server, replacing its verifier with verifier and returning it.

Consumes the server, starting a task to process connections from the listener and returning a ServerRef that can be used to control the active server instance.

Trait Implementations

Returns the “default value” for a 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

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.