[][src]Crate qp2p

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

Structs

Config

QuicP2p configurations

Connection

Connection instance to a node which can be used to send messages to it

Endpoint

Endpoint instance which can be used to create connections to peers, and listen to incoming messages from other peers.

IncomingConnections

Stream of incoming QUIC connections

IncomingMessages

Stream of incoming QUIC messages

OverRide

For Operating Systems beyond Windows or UNIX. May also be used for testing and mobile platforms.

QuicP2p

Main QuicP2p instance to communicate with QuicP2p using an async API

RecvStream

Stream to receive multiple messages

SendStream

Stream of outgoing messages

Enums

Dirs

Location at which data such as config, keys, certificates and other backup data are stored.

Error
Message

Message received from a peer

Constants

DEFAULT_IDLE_TIMEOUT_MSEC

Default interval within which if we hear nothing from the peer we declare it offline to us.

DEFAULT_KEEP_ALIVE_INTERVAL_MSEC

Default Interval to send keep-alives if we are idling so that the peer does not disconnect from us declaring us offline. If none is supplied we'll default to the documented constant.

Type Definitions

Result

Result used by QuicP2p.