Skip to main content

Event

Enum Event 

Source
pub enum Event<C: Connection + ?Sized> {
    Control,
    Established,
    Head {
        message: C::Message,
        head: RetainedHead<C::Fields, C::Selection, C::Control>,
        section: Section,
    },
    Data {
        message: C::Message,
        data: C::Data,
    },
    Reset {
        stream: C::Key,
        reason: Reset,
        retired: Option<C::Retired>,
    },
    Retired(C::Retired),
}
Expand description

One request-side event produced by an HTTP server carrier.

Variants§

§

Control

Carrier control progress with no application-visible request data.

§

Established

The protocol handshake completed for this connection.

§

Head

Fields

§message: C::Message
§head: RetainedHead<C::Fields, C::Selection, C::Control>
§section: Section
§

Data

Fields

§message: C::Message
§data: C::Data
§

Reset

Fields

§stream: C::Key
§reason: Reset
§retired: Option<C::Retired>
§

Retired(C::Retired)

A transport owner retired after semantic stream completion.

Auto Trait Implementations§

§

impl<C> Forget for Event<C>
where C: ?Sized,

§

impl<C> Freeze for Event<C>
where <C as Connection>::Message: Freeze, RetainedHead<<C as Connection>::Fields, <C as Connection>::Selection, <C as Connection>::Control>: Freeze, <C as Connection>::Data: Freeze, <C as Connection>::Key: Freeze, Option<<C as Connection>::Retired>: Freeze, <C as Connection>::Retired: Freeze, C: ?Sized,

§

impl<C> RefUnwindSafe for Event<C>

§

impl<C> Send for Event<C>
where <C as Connection>::Message: Send, RetainedHead<<C as Connection>::Fields, <C as Connection>::Selection, <C as Connection>::Control>: Send, <C as Connection>::Data: Send, <C as Connection>::Key: Send, Option<<C as Connection>::Retired>: Send, <C as Connection>::Retired: Send, C: ?Sized,

§

impl<C> Sync for Event<C>
where <C as Connection>::Message: Sync, RetainedHead<<C as Connection>::Fields, <C as Connection>::Selection, <C as Connection>::Control>: Sync, <C as Connection>::Data: Sync, <C as Connection>::Key: Sync, Option<<C as Connection>::Retired>: Sync, <C as Connection>::Retired: Sync, C: ?Sized,

§

impl<C> Unpin for Event<C>
where <C as Connection>::Message: Unpin, RetainedHead<<C as Connection>::Fields, <C as Connection>::Selection, <C as Connection>::Control>: Unpin, <C as Connection>::Data: Unpin, <C as Connection>::Key: Unpin, Option<<C as Connection>::Retired>: Unpin, <C as Connection>::Retired: Unpin, C: ?Sized,

§

impl<C> UnsafeUnpin for Event<C>

§

impl<C> UnwindSafe for Event<C>

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> Convert<T> for T

Source§

fn into(self) -> T

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.