pub enum UniStreamResult<T> {
Handled,
WebTransport {
session_id: u64,
stream: T,
buffer: Buffer,
},
Unknown {
stream_type: u64,
stream: T,
},
}Expand description
The result of processing an HTTP/3 unidirectional stream.
Variants§
Handled
The stream was a known internal type (control, QPACK encoder/decoder) and was handled automatically.
WebTransport
A WebTransport unidirectional data stream. The session_id identifies the associated
WebTransport session.
Fields
§
stream: TThe receive stream, ready for application data.
§
buffer: BufferAny bytes buffered after the session ID during stream negotiation.
Unknown
An unknown or unsupported stream type (e.g. Push). The caller should close or reset this stream without processing it.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for UniStreamResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for UniStreamResult<T>where
T: RefUnwindSafe,
impl<T> Send for UniStreamResult<T>where
T: Send,
impl<T> Sync for UniStreamResult<T>where
T: Sync,
impl<T> Unpin for UniStreamResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for UniStreamResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for UniStreamResult<T>where
T: UnwindSafe,
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