pub struct H3Connection<H: DriverHooks> {
pub quic_connection: QuicConnection,
pub h3_controller: H3Controller<H>,
}
Expand description
A wrapper for an h3-driven QuicConnection together with the driver’s H3Controller.
Fields§
§quic_connection: QuicConnection
§h3_controller: H3Controller<H>
Implementations§
Source§impl<H: DriverHooks> H3Connection<H>
impl<H: DriverHooks> H3Connection<H>
Sourcepub fn new(
quic_connection: QuicConnection,
h3_controller: H3Controller<H>,
) -> Self
pub fn new( quic_connection: QuicConnection, h3_controller: H3Controller<H>, ) -> Self
Bundles quic_connection
and h3_controller
into a new H3Connection.
Sourcepub fn local_addr(&self) -> SocketAddr
pub fn local_addr(&self) -> SocketAddr
The local address this connection listens on.
Sourcepub fn peer_addr(&self) -> SocketAddr
pub fn peer_addr(&self) -> SocketAddr
The remote address for this connection.
Sourcepub fn audit_log_stats(&self) -> &Arc<QuicAuditStats>
pub fn audit_log_stats(&self) -> &Arc<QuicAuditStats>
The QuicConnection’s audit stats.
Sourcepub fn stats(&self) -> &Arc<Mutex<QuicConnectionStats>>
pub fn stats(&self) -> &Arc<Mutex<QuicConnectionStats>>
The QuicConnection’s [quiche
] stats.
Sourcepub fn scid(&self) -> &ConnectionId<'static>
pub fn scid(&self) -> &ConnectionId<'static>
The QuicConnection’s source connection ID.
Trait Implementations§
Source§impl<H: DriverHooks> AsSocketStats for H3Connection<H>
impl<H: DriverHooks> AsSocketStats for H3Connection<H>
fn as_socket_stats(&self) -> SocketStats
fn as_quic_stats(&self) -> Option<&Arc<QuicAuditStats>>
Source§impl<H: DriverHooks> ShutdownConnection for H3Connection<H>
impl<H: DriverHooks> ShutdownConnection for H3Connection<H>
Auto Trait Implementations§
impl<H> Freeze for H3Connection<H>
impl<H> RefUnwindSafe for H3Connection<H>
impl<H> Send for H3Connection<H>
impl<H> Sync for H3Connection<H>
impl<H> Unpin for H3Connection<H>
impl<H> UnwindSafe for H3Connection<H>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more