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

A gRPC server.

A single server can serve arbitrary number of services and can listen on more than one port.

Use ServerBuilder to build a Server.

Implementations

Shutdown the server asynchronously.

Cancel all in-progress calls.

Only usable after shutdown.

Start the server.

Get binded addresses pairs.

Add an rpc channel for an established connection represented as a file descriptor. Takes ownership of the file descriptor, closing it when channel is closed.

Safety

The file descriptor must correspond to a connected stream socket. After this call, the socket must not be accessed (read / written / closed) by other code.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this 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.

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.