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

Server factory in order to configure the properties.

Implementations

Bind to an address with credentials for secure connection.

This function can be called multiple times to bind to multiple ports.

Bind to an address for secure connection.

The required credentials will be fetched using provided fetcher. This function can be called multiple times to bind to multiple ports.

Initialize a new ServerBuilder.

Bind to an address.

This function can be called multiple times to bind to multiple ports.

Add additional configuration for each incoming channel.

Set how many requests a completion queue can handle.

Register a service.

Add a custom checker to handle some tasks before the grpc call handler starts. This allows users to operate grpc call based on the context. Users can add multiple checkers and they will be executed in the order added.

TODO: Extend this interface to intercepte each payload like grpc-c++.

Finalize the ServerBuilder and build the Server.

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.