Struct quicr::Connection[][src]

pub struct Connection(_);

A QUIC connection.

If a Connection is dropped without being explicitly closed, it will be automatically closed with an error_code of 0 and an empty reason.

Methods

impl Connection
[src]

Initite a new outgoing unidirectional stream.

Initiate a new outgoing bidirectional stream.

Close the connection immediately.

This does not ensure delivery of outstanding data. It is the application's responsibility to call this only when all important communications have been completed.

error_code and reason are not interpreted, and are provided directly to the peer.

reason will be truncated to fit in a single packet with overhead; to be certain it is preserved in full, it should be kept under 1KiB.

The peer's UDP address.

The ConnectionId used for conn locally.

The ConnectionId used for conn by the peer.

The negotiated application protocol

Whether the cryptographic session was resumed

Auto Trait Implementations

impl !Send for Connection

impl !Sync for Connection