pub struct RpcContext<'a> { /* private fields */ }
Expand description

A context for rpc handling.

Implementations

Get the initial metadata sent by client.

Wrapper around the gRPC Core AuthContext

If the server binds in non-secure mode, this will return None

Spawn the future into current gRPC poll thread.

This can reduce a lot of context switching, but please make sure there is no heavy work in the future.

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.