pub struct Parameters<'a, Cfg: Config> {
Show 16 fields pub internal_connection_id: InternalConnectionId, pub local_id_registry: LocalIdRegistry, pub peer_id_registry: PeerIdRegistry, pub peer_connection_id: PeerId, pub local_connection_id: LocalId, pub path_handle: Cfg::PathHandle, pub space_manager: PacketSpaceManager<Cfg>, pub wakeup_handle: WakeupHandle<InternalConnectionId>, pub congestion_controller: <Cfg::CongestionControllerEndpoint as Endpoint>::CongestionController, pub timestamp: Timestamp, pub quic_version: u32, pub limits: Limits, pub max_mtu: MaxMtu, pub event_context: <Cfg::EventSubscriber as Subscriber>::ConnectionContext, pub supervisor_context: &'a Context<'a>, pub event_subscriber: &'a mut Cfg::EventSubscriber,
}
Expand description

Parameters which are passed to a Connection. These are unique per created connection.

Fields

internal_connection_id: InternalConnectionId

The Connections internal identifier

local_id_registry: LocalIdRegistry

The local ID registry which should be utilized by the connection

peer_id_registry: PeerIdRegistry

The peer ID registry which should be utilized by the connection

peer_connection_id: PeerId

The last utilized remote Connection ID

local_connection_id: LocalId

The last utilized local Connection ID

path_handle: Cfg::PathHandle

The path handle on which the connection was created

space_manager: PacketSpaceManager<Cfg>

The space manager created for the connection

wakeup_handle: WakeupHandle<InternalConnectionId>

A struct which triggers a wakeup for the given connection

This should be called from the application task

congestion_controller: <Cfg::CongestionControllerEndpoint as Endpoint>::CongestionController

The initial congestion controller for the connection

timestamp: Timestamp

The time the connection is being created

quic_version: u32

The QUIC protocol version which is used for this particular connection

limits: Limits

The limits that were advertised to the peer

max_mtu: MaxMtu

The largest maximum transmission unit (MTU) that can be sent on a path

event_context: <Cfg::EventSubscriber as Subscriber>::ConnectionContext

The context that should be passed to all related connection events

supervisor_context: &'a Context<'a>

The context passed to the connection supervisor

event_subscriber: &'a mut Cfg::EventSubscriber

The event subscriber for the endpoint

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.