pub enum InboundStream {
Bidi(InboundBidiStream),
Uni(InboundUniStream),
}Expand description
An inbound WebTransport stream, yielded by
WebTransportConnection::accept_next_stream.
Datagrams are handled separately via
WebTransportConnection::recv_datagram, as they
typically require a dedicated low-latency loop rather than sharing one with stream acceptance.
Variants§
Bidi(InboundBidiStream)
An inbound bidirectional stream opened by the client.
Uni(InboundUniStream)
An inbound unidirectional stream opened by the client.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InboundStream
impl !RefUnwindSafe for InboundStream
impl Send for InboundStream
impl Sync for InboundStream
impl Unpin for InboundStream
impl UnsafeUnpin for InboundStream
impl !UnwindSafe for InboundStream
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