Expand description
qp2p enables communication within a peer to peer network over the QUIC protocol.
Structs§
- Connection
- The sending API for a connection.
- Connection
Incoming - Endpoint
- Endpoint instance which can be used to communicate with peers.
- Endpoint
Builder - Build a
crate::Endpoint - Incoming
Connections - Channel on which incoming connections are notified on
- Internal
Config Error - An internal configuration error encountered by
Endpointconnect methods. - Recv
Stream - The receiving API for a bidirectional QUIC stream.
- Send
Stream - The sending API for a QUIC stream.
- Transport
Error Code - An opaque error code indicating a transport failure.
- Unsupported
Stream Operation - An error caused by an unsupported operation.
- WireMsg
- Final type serialised and sent on the wire by
QuicP2pThe message bytes that comprise the message, These are (header, dst, payload) bytes to be passed to qp2p
Enums§
- Certificate
Error - Various error related to certificates. Should mostly occur due to bugs, not runtime constraints.
- Close
- The reason a connection was closed.
- Connection
Error - Errors that can cause connection loss.
- Endpoint
Error - Errors returned from the endpoint builder (
crate::EndpointBuilder::server). - Recv
Error - Errors that can occur when receiving messages.
- RpcError
- Errors that can occur when performing an RPC operation.
- Send
Error - Errors that can occur when sending messages.
- Stream
Error - Errors that can occur when interacting with streams.
Type Aliases§
- UsrMsg
Bytes - The message bytes that comprise the message, These are (header, dst, payload) bytes to be passed to qp2p