Uses the underlying quiche Connection send
method in order to write a singular QUIC packet to send to the peer.
loop {
let read = match listener.send_once(&mut out).await {
Ok(v) => v,
Err(std::io::Other) => {
break;
}
Err(_) => {
break;
}
}
}
Uses the underlying quiche Connection recv
method in order to process QUIC packets received from the peer.
loop {
let read = match listener.recv(&mut buf).unwrap().await {
Ok(v) => v,
Err(e) => {
break;
}
};
}
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.