Skip to main content

H2ControlFlushTarget

Enum H2ControlFlushTarget 

Source
pub enum H2ControlFlushTarget {
    Proceed,
    Done(MuxResult),
    Stalled,
    FlushOutput,
}
Expand description

What ConnectionH2::flush_pending_control_frames wants its caller to do with the pass it just ran a control-frame preamble over.

Self::Stalled is what replaces the TLS re-arm the stalled-drain tails used to perform inline. An output flush that stalled has to be followed by a FRESH H2Shell::tls_wants_write — that write is what changes the answer, so no value read before it can stand in — and the shell that owns the socket is the layer that reads it.

Self::Proceed is the former None: it carries no MuxResult because the preamble did not end the pass, and writable() falls through to its (H2State, Position) dispatch.

Variants§

§

Proceed

Nothing owed, nothing stalled: writable() proceeds into its state dispatch.

§

Done(MuxResult)

The preamble ended the pass by itself — a SETTINGS-ACK timeout GOAWAY or an RST_STREAM lifetime-cap GOAWAY. This is the pass’s result, and no TLS query follows it.

§

Stalled

The output flush stalled. Read tls_wants_write, hand it to ConnectionH2::ensure_tls_flushed, and answer the pass with MuxResult::Continue.

§

FlushOutput

The connection’s ordered output queue holds bytes: the control frames this walk just serialised behind whatever was already queued. Drain ConnectionH2::output_pending to the socket and answer with ConnectionH2::handle_control_flush.

Trait Implementations§

Source§

impl Clone for H2ControlFlushTarget

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for H2ControlFlushTarget

Source§

impl Debug for H2ControlFlushTarget

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.