Available on crate feature
server only.Expand description
The server half of trillium-grpc.
A generated <Service>Server<T> is a trillium Handler:
it matches the service’s path prefix, validates the gRPC preflight, and
hands each request to one of the Server dispatch methods, which drives
the codec, framing, cancellation, and grpc-status trailers around your
service-trait method. The streaming shapes hand your method a borrowed
RequestStream or Channel.
You implement the generated service trait and wrap it in the generated server; the items here are the machinery that wrapper is built from.
Re-exports§
pub use bidi::BidiResponder;pub use bidi::drive_bidi_upgrade;pub use bidi::has_bidi_upgrade;pub use dispatch::Server;pub use streaming::Channel;pub use streaming::RequestStream;
Modules§
- bidi
- Bidirectional-streaming: the prologue + responder split that straddles the run→upgrade seam.
- dispatch
- Server-side request dispatch.
- streaming
- Borrowed streaming primitives handed to service methods.
Structs§
- Grpc
Server Conn - The control surface for a single gRPC call. Owns the
Connfor the duration of one RPC — value in, value out.