pub enum WebTransportStream {
Bidi {
session_id: u64,
stream: BoxedBidiStream,
buffer: Vec<u8>,
},
Uni {
session_id: u64,
stream: BoxedRecvStream,
buffer: Vec<u8>,
},
}Expand description
An inbound WebTransport stream, dispatched by WebTransportDispatcher to the registered
handler.
Variants§
Bidi
A bidirectional stream.
Fields
§
stream: BoxedBidiStreamThe stream transport, ready for application data.
Uni
A unidirectional stream.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WebTransportStream
impl !UnwindSafe for WebTransportStream
impl Freeze for WebTransportStream
impl Send for WebTransportStream
impl Sync for WebTransportStream
impl Unpin for WebTransportStream
impl UnsafeUnpin for WebTransportStream
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