Struct hickory_proto::h3::h3_server::H3Connection
source · 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