Skip to main content

Crate linera_rpc

Crate linera_rpc 

Source
Expand description

This module provides network abstractions and the data schemas for remote procedure calls (RPCs) in the Linera protocol.

Re-exports§

pub use client::Client;
pub use node_provider::NodeOptions;
pub use node_provider::NodeProvider;
pub use node_provider::DEFAULT_MAX_BACKOFF;

Modules§

client
A network-agnostic client for talking to a validator node.
config
Network configuration types for validators, shards, and cross-chain messaging.
grpc
The gRPC network transport.
node_provider
Construction of validator-node clients from network configuration.
propagation
Propagation of OpenTelemetry trace context across RPC boundaries. OpenTelemetry context propagation for gRPC.
simple
The simple custom-TCP/UDP network transport.

Structs§

HandleConfirmedCertificateRequest
A request to handle a confirmed-block certificate.
HandleLiteCertRequest
A request to handle a lite certificate.
HandleTimeoutCertificateRequest
A request to handle a timeout certificate.
HandleValidatedCertificateRequest
A request to handle a validated-block certificate.
ShardInfo
Information about shard configuration for a specific chain.

Enums§

RpcMessage
An RPC message exchanged between clients, proxies and validators.

Constants§

CERT_PEM
A self-signed TLS certificate (PEM), generated at build time for local testing.
FILE_DESCRIPTOR_SET
The protobuf file descriptor set for the RPC service, used for gRPC reflection.
KEY_PEM
The private key (PEM) matching CERT_PEM, generated at build time for local testing.