Skip to main content

Crate rpc

Crate rpc 

Source
Expand description

gRPC transport primitives for rust-zero services.

Service implementations remain ordinary Tonic services. RpcServer and RpcClient centralize the transport safeguards that should be applied consistently across services.

Re-exports§

pub use auth::BearerToken;
pub use auth::RpcBearerAuth;
pub use auth::RpcJwtAuth;
pub use auth::RpcRequestSignatureAuth;
pub use auth::RpcRequestSigner;
pub use metrics::RpcMetricMode;
pub use metrics::RpcMetrics;
pub use metrics::RpcMetricsLayer;
pub use resilience::acceptable_status;
pub use resilience::circuit_outcome;
pub use resilience::RpcCircuitBreaker;
pub use resilience::RpcLoadShedder;
pub use stack::RpcClientStack;
pub use stack::RpcClientStackBuilder;
pub use stack::RpcClientStackService;
pub use stack::RpcServerStack;
pub use stack::RpcServerStackBuilder;
pub use trace::RpcTrace;
pub use trace::RpcTelemetryLayer;
pub use trace::RpcTelemetryMode;

Modules§

auth
echo
metrics
resilience
stack
Generated-service-independent client and server assembly.
trace

Structs§

DiscoveryStatus
Watchable readiness for a channel created from service discovery.
DiscoveryStatusSnapshot
HealthReporter
A handle providing methods to update the health status of gRPC services. A HealthReporter is connected to a HealthServer which serves the statuses over the grpc.health.v1.Health service.
JwtClaimProjection
Selects JWT values into handler-facing names using dot-separated payload paths.
RequestSignatureVerifier
Verifies named signing keys and rejects signatures outside a bounded clock-skew window.
RpcClient
Connects gRPC clients using a common set of deadline and concurrency safeguards.
RpcClientConfig
Connection settings for a gRPC client.
RpcServer
Builds configured Tonic server routers.
RpcServerConfig
Transport settings applied to every gRPC service on a server.

Enums§

AuthFailure
Stable authentication failures shared by HTTP and gRPC adapters.
DiscoveryReadiness
Aggregate availability exposed by a discovered RPC channel.
RpcClientError
RpcConfigError
RpcServerError

Functions§

health_reporter
Creates a HealthReporter and a linked HealthServer pair. Together, these types can be used to serve the gRPC Health Checking service.