Skip to main content

Crate grpc

Crate grpc 

Source
Expand description

The official Rust implementation of gRPC, a high performance, open source, universal RPC framework.

NOTE: This version is a preview and not recommended for any production use. All APIs are unstable. Proceed at your own risk.

§Documentation, Examples, and Getting Started

Please see our website for everything you should need to get started using gRPC.

§Feature Flags

The only currently-supported feature flags are the defaults.

§Modules

  • client - Creating and working with gRPC client-side channels
  • credentials - Securing connections and providing access tokens
  • metadata - Data sent with all RPCs typically used by interceptors
  • core - Common types shared between clients and servers
  • attributes - Generic key/value storage used by gRPC plugins

Modules§

attributes
A generic key/value store.
client
Client-side gRPC implementation and utilities.
core
Core gRPC types common to clients and servers.
credentials
Authentication and security credentials (e.g. TLS and OAuth2).
metadata
gRPC metadata handling.

Macros§

include_generated_proto
Includes generated proto message, client, and server code. This macro is for if you manually set output_dir instead of using the default OUT_DIR.
include_proto
Includes generated proto message, client, and server code.

Structs§

StatusError
Represents a gRPC status.

Enums§

StatusCodeError
Represents a gRPC status code.

Type Aliases§

Status
The representation of a gRPC status. OK statuses may not contain a status message, while error values may.
StatusOr
Represents either a failing gRPC status or a successful result containing T.