pub struct QuicRequest { /* private fields */ }Implementations§
Source§impl QuicRequest
impl QuicRequest
Sourcepub fn accept(connection: Connection) -> Self
pub fn accept(connection: Connection) -> Self
Accept a new QUIC session from a client.
Sourcepub fn close(self, status: StatusCode)
pub fn close(self, status: StatusCode)
Reject the session with a status code.
The status code number will be used as the error code.
Auto Trait Implementations§
impl Freeze for QuicRequest
impl RefUnwindSafe for QuicRequest
impl Send for QuicRequest
impl Sync for QuicRequest
impl Unpin for QuicRequest
impl UnwindSafe for QuicRequest
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more