pub enum Request {
WebTransport(Request),
Quic(QuicRequest),
}Variants§
WebTransport(Request)
Quic(QuicRequest)
Implementations§
Source§impl Request
impl Request
Sourcepub async fn close(self, status: StatusCode) -> Result<(), ServerError>
pub async fn close(self, status: StatusCode) -> Result<(), ServerError>
Reject the session, returning your favorite HTTP status code.
Sourcepub async fn ok(self) -> Result<Session, ServerError>
pub async fn ok(self) -> Result<Session, ServerError>
Accept the session.
For WebTransport, this completes the HTTP handshake (200 OK). For raw QUIC, this constructs a raw session.
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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