pub struct H3iDriver { /* private fields */ }
Trait Implementations§
Source§impl ApplicationOverQuic for H3iDriver
impl ApplicationOverQuic for H3iDriver
Source§fn on_conn_established(
&mut self,
_qconn: &mut QuicheConnection,
_handshake_info: &HandshakeInfo,
) -> QuicResult<()>
fn on_conn_established( &mut self, _qconn: &mut QuicheConnection, _handshake_info: &HandshakeInfo, ) -> QuicResult<()>
Callback to customize the
ApplicationOverQuic
after the QUIC
handshake completed successfully. Read moreSource§fn should_act(&self) -> bool
fn should_act(&self) -> bool
Determines whether the application’s methods will be called by the
worker. Read more
Source§fn process_reads(&mut self, qconn: &mut QuicheConnection) -> QuicResult<()>
fn process_reads(&mut self, qconn: &mut QuicheConnection) -> QuicResult<()>
Processes data received on the connection. Read more
Source§fn process_writes(&mut self, qconn: &mut QuicheConnection) -> QuicResult<()>
fn process_writes(&mut self, qconn: &mut QuicheConnection) -> QuicResult<()>
Adds data to be sent on the connection. Read more
Source§async fn wait_for_data(
&mut self,
qconn: &mut QuicheConnection,
) -> QuicResult<()>
async fn wait_for_data( &mut self, qconn: &mut QuicheConnection, ) -> QuicResult<()>
Waits for an event to trigger the next iteration of the worker loop. Read more
Source§fn buffer(&mut self) -> &mut [u8] ⓘ
fn buffer(&mut self) -> &mut [u8] ⓘ
A borrowed buffer for the worker to write outbound packets into. Read more
Source§fn on_conn_close<M: Metrics>(
&mut self,
qconn: &mut QuicheConnection,
_metrics: &M,
_work_loop_result: &QuicResult<()>,
)
fn on_conn_close<M: Metrics>( &mut self, qconn: &mut QuicheConnection, _metrics: &M, _work_loop_result: &QuicResult<()>, )
Callback to inspect the result of the worker task, before a final packet
with a
CONNECTION_CLOSE
frame is flushed to the network. Read moreAuto Trait Implementations§
impl Freeze for H3iDriver
impl !RefUnwindSafe for H3iDriver
impl Send for H3iDriver
impl Sync for H3iDriver
impl Unpin for H3iDriver
impl !UnwindSafe for H3iDriver
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