Crate qp2p

Crate qp2p 

Source
Expand description

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

Structs§

Connection
The sending API for a connection.
ConnectionIncoming
Endpoint
Endpoint instance which can be used to communicate with peers.
EndpointBuilder
Build a crate::Endpoint
IncomingConnections
Channel on which incoming connections are notified on
InternalConfigError
An internal configuration error encountered by Endpoint connect methods.
RecvStream
The receiving API for a bidirectional QUIC stream.
SendStream
The sending API for a QUIC stream.
TransportErrorCode
An opaque error code indicating a transport failure.
UnsupportedStreamOperation
An error caused by an unsupported operation.
WireMsg
Final type serialised and sent on the wire by QuicP2p The message bytes that comprise the message, These are (header, dst, payload) bytes to be passed to qp2p

Enums§

CertificateError
Various error related to certificates. Should mostly occur due to bugs, not runtime constraints.
Close
The reason a connection was closed.
ConnectionError
Errors that can cause connection loss.
EndpointError
Errors returned from the endpoint builder (crate::EndpointBuilder::server).
RecvError
Errors that can occur when receiving messages.
RpcError
Errors that can occur when performing an RPC operation.
SendError
Errors that can occur when sending messages.
StreamError
Errors that can occur when interacting with streams.

Type Aliases§

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