Module kitsune_p2p_types::tx2::tx2_api
source · Expand description
Usability api for tx2 kitsune transports.
Structs
- Metrics callback manager to be injected into the endpoint
- A connection handle - use this to manage an open connection.
- Represents a bound endpoint. To manage this endpoint, see handle()/Tx2EpHnd. To receive events from this endpoint, poll_next this instance as a Stream.
- Data associated with an IncomingConnection EpEvent
- Data associated with a ConnectionClosed EpEvent
- Endpoint binding factory - lets us easily pass around logic for later binding network transports.
- An endpoint handle - use this to manage a bound endpoint.
- Data associated with an IncomingNotify EpEvent
- Data associated with an IncomingRequest EpEvent
- Respond to a Tx2EpIncomingRequest
Enums
- Event emitted by a transport endpoint.
Functions
- Construct a new Tx2EpFactory instance from a pool EpFactory