Skip to main content

UniStreamResult

Enum UniStreamResult 

Source
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

§session_id: u64

The WebTransport session ID.

§stream: T

The receive stream, ready for application data.

§buffer: Buffer

Any 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.

Fields

§stream_type: u64

The raw stream type value.

§stream: T

The stream.

Trait Implementations§

Source§

impl<T: Debug> Debug for UniStreamResult<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.