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

Service factory in order to configure the properties.

Use it to build a service which can be registered to a server.

Implementations

Initialize a new ServiceBuilder.

Add a unary RPC call handler.

Add a client streaming RPC call handler.

Add a server streaming RPC call handler.

Add a duplex streaming RPC call handler.

Finalize the ServiceBuilder and build the Service.

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.