Struct quicr::Endpoint[][src]

pub struct Endpoint(_);

A QUIC endpoint.

An endpoint corresponds to a single UDP socket, may host many connections, and may act as both client and server for different connections.

Methods

impl Endpoint
[src]

Begin constructing an Endpoint

Connect to a remote endpoint.

May fail immediately due to configuration errors, or in the future if the connection could not be established.

Connect to a remote endpoint, with support for transmitting data before the connection is established

Returns a connection that may be used for sending immediately, and a future that will complete when the connection is established.

Data transmitted this way may be replayed by an attacker until the session ticket expires. Never send non-idempotent commands as 0-RTT data.

Servers may reject 0-RTT data, in which case anything sent will be retransmitted after the connection is established.

Panics

  • If config.session_ticket is None. A session ticket is necessary for 0-RTT to be possible.

Auto Trait Implementations

impl !Send for Endpoint

impl !Sync for Endpoint