pub struct H3Connection { /* private fields */ }
Available on crate feature
dns-over-h3
only.Expand description
A HTTP/3 connection.
Implementations§
Source§impl H3Connection
impl H3Connection
Sourcepub async fn accept(
&mut self,
) -> Option<Result<(Request<()>, RequestStream<BidiStream<Bytes>, Bytes>), ProtoError>>
pub async fn accept( &mut self, ) -> Option<Result<(Request<()>, RequestStream<BidiStream<Bytes>, Bytes>), ProtoError>>
Accept the next request from the client
Sourcepub async fn shutdown(&mut self) -> Result<(), ProtoError>
pub async fn shutdown(&mut self) -> Result<(), ProtoError>
Shutdown the connection.
Auto Trait Implementations§
impl !Freeze for H3Connection
impl !RefUnwindSafe for H3Connection
impl Send for H3Connection
impl Sync for H3Connection
impl Unpin for H3Connection
impl !UnwindSafe for H3Connection
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