pub struct IncomingSessionFuture(/* private fields */);Expand description
Future for an in-progress incoming connection attempt.
Created by awaiting an IncomingSession
Implementations§
Source§impl IncomingSessionFuture
impl IncomingSessionFuture
Sourcepub fn with_quic_incoming(quic_incoming: Incoming) -> Self
pub fn with_quic_incoming(quic_incoming: Incoming) -> Self
Creates a future from quinn::Incoming.
The returned future resolves to a SessionRequest once the QUIC connection
is established and the WebTransport session has been accepted.
Sourcepub fn with_quic_connecting(quic_connecting: Connecting) -> Self
pub fn with_quic_connecting(quic_connecting: Connecting) -> Self
Creates a future from quinn::Connecting.
This is useful when a quinn::Connecting is already available and needs to be
driven to completion to accept an incoming WebTransport session.
The returned future resolves to a SessionRequest once the QUIC connection
is established and the WebTransport session has been accepted.
Trait Implementations§
Source§impl Future for IncomingSessionFuture
impl Future for IncomingSessionFuture
Source§type Output = Result<SessionRequest, ConnectionError>
type Output = Result<SessionRequest, ConnectionError>
The type of value produced on completion.
Auto Trait Implementations§
impl Freeze for IncomingSessionFuture
impl !RefUnwindSafe for IncomingSessionFuture
impl Send for IncomingSessionFuture
impl Sync for IncomingSessionFuture
impl Unpin for IncomingSessionFuture
impl !UnwindSafe for IncomingSessionFuture
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more