pub enum Request {
WebTransport(Request),
Quic(QuicRequest),
}Expand description
An incoming connection that can be accepted or rejected.
Variants§
WebTransport(Request)
Quic(QuicRequest)
Implementations§
Source§impl Request
impl Request
Sourcepub async fn reject(self, status: StatusCode) -> Result<()>
pub async fn reject(self, status: StatusCode) -> Result<()>
Reject the session, returning your favorite HTTP status code.
Sourcepub async fn accept(
self,
publish: impl Into<Option<OriginConsumer>>,
subscribe: impl Into<Option<OriginProducer>>,
) -> Result<Session>
pub async fn accept( self, publish: impl Into<Option<OriginConsumer>>, subscribe: impl Into<Option<OriginProducer>>, ) -> Result<Session>
Accept the session, performing rest of the MoQ handshake.
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§
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