pub struct ConnWrapperResult<Tx, M>{
pub conn: InitialQuicConnection<Tx, M>,
pub incoming_tx: Sender<Incoming>,
pub conn_close_rx: ConnCloseReceiver,
pub worker_shutdown_rx: Receiver<()>,
}Expand description
Result of manually wrapping a quiche::Connection in an
InitialQuicConnection.
This struct bundles the interfaces which interact with the connection.
Fields§
§conn: InitialQuicConnection<Tx, M>The connection wrapper.
incoming_tx: Sender<Incoming>Sender for inbound packets on the connection.
conn_close_rx: ConnCloseReceiverReceiver for connection closed notifications. This fires
after a CONNECTION_CLOSE frame has been sent on the connection,
but before worker_shutdown_rx.
worker_shutdown_rx: Receiver<()>Receiver which fires only when its associated sender is dropped. This happens when the connection’s IO task exits.
Auto Trait Implementations§
impl<Tx, M> Freeze for ConnWrapperResult<Tx, M>
impl<Tx, M> !RefUnwindSafe for ConnWrapperResult<Tx, M>
impl<Tx, M> Send for ConnWrapperResult<Tx, M>where
Tx: ?Sized,
impl<Tx, M> Sync for ConnWrapperResult<Tx, M>where
Tx: ?Sized,
impl<Tx, M> Unpin for ConnWrapperResult<Tx, M>where
Tx: ?Sized,
impl<Tx, M> !UnwindSafe for ConnWrapperResult<Tx, M>
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