pub struct H3Controller<H: DriverHooks> { /* private fields */ }Expand description
Interface to communicate with a paired H3Driver.
An H3Controller receives H3Events from its driver, which must be
consumed by the application built on top of the driver to react to incoming
events. The controller also allows the application to send ad-hoc
H3Commands to the driver, which will be processed when the driver waits
for incoming data.
Implementations§
Source§impl H3Controller<ClientHooks>
impl H3Controller<ClientHooks>
Sourcepub fn request_sender(&self) -> ClientRequestSender
pub fn request_sender(&self) -> ClientRequestSender
Creates a NewClientRequest sender for the paired ClientH3Driver.
Source§impl<H: DriverHooks> H3Controller<H>
impl<H: DriverHooks> H3Controller<H>
Sourcepub fn event_receiver_mut(&mut self) -> &mut UnboundedReceiver<H::Event>
pub fn event_receiver_mut(&mut self) -> &mut UnboundedReceiver<H::Event>
Sourcepub fn take_event_receiver(&mut self) -> UnboundedReceiver<H::Event>
pub fn take_event_receiver(&mut self) -> UnboundedReceiver<H::Event>
Sourcepub fn cmd_sender(&self) -> RequestSender<H::Command, QuicCommand>
pub fn cmd_sender(&self) -> RequestSender<H::Command, QuicCommand>
Creates a QuicCommand sender for the paired H3Driver.
Sourcepub fn send_goaway(&self)
pub fn send_goaway(&self)
Sends a GOAWAY frame to initiate a graceful connection shutdown.
Auto Trait Implementations§
impl<H> Freeze for H3Controller<H>
impl<H> RefUnwindSafe for H3Controller<H>
impl<H> Send for H3Controller<H>
impl<H> Sync for H3Controller<H>
impl<H> Unpin for H3Controller<H>
impl<H> UnwindSafe for H3Controller<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