Struct s2n_quic_transport::connection::Parameters
source · [−]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 Connection
s 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
impl<'a, Cfg> !RefUnwindSafe for Parameters<'a, Cfg>
impl<'a, Cfg> Send for Parameters<'a, Cfg>
impl<'a, Cfg> !Sync for Parameters<'a, Cfg>
impl<'a, Cfg> Unpin for Parameters<'a, Cfg> where
<<Cfg as Config>::CongestionControllerEndpoint as Endpoint>::CongestionController: Unpin,
<<Cfg as Config>::EventSubscriber as Subscriber>::ConnectionContext: Unpin,
<Cfg as Config>::PathHandle: Unpin,
<<Cfg as Config>::TLSEndpoint as Endpoint>::Session: Unpin,
impl<'a, Cfg> !UnwindSafe for Parameters<'a, Cfg>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more