Crate qp2p

source · []
Expand description

qp2p enables communication within a peer to peer network over the QUIC protocol.

Re-exports

pub use config::Config;
pub use config::ConfigError;
pub use config::RetryConfig;

Modules

Configuration for Endpoints.

Structs

The sending API for a connection.

The receiving API for a connection.

Endpoint instance which can be used to communicate with peers.

Channel on which incoming connections are notified on

An internal configuration error encountered by Endpoint connect methods.

The receiving API for a bidirectional QUIC stream.

The sending API for a QUIC stream.

Failed to (de)serialize message.

An opaque error code indicating a transport failure.

An error caused by an unsupported operation.

Failed to establish UPnP port forwarding.

Enums

The reason a connection was closed.

Errors that can cause connection loss.

Errors returned from Endpoint::new.

Errors that can occur when receiving messages.

Errors that can occur when performing an RPC operation.

Errors that can occur when sending messages.

Errors that can occur when interacting with streams.

Type Definitions

The message bytes that comprise the message, These are (header, dst, payload) bytes to be passed to qp2p