Skip to main content

Http2BuildError

Enum Http2BuildError 

Source
pub enum Http2BuildError {
Show 15 variants ZeroStreamId, ReservedStreamId, ZeroWindowIncrement, ReservedWindowIncrement, SettingsAckPayload { actual: usize, }, InvalidSettingValue { id: Http2SettingId, value: u32, }, ReservedLastStreamId, DataPaddedFlagSet, HeadersPaddedFlagSet, HeadersPriorityFlagSet, PushPromisePaddedFlagSet, ZeroPromisedStreamId, ReservedPromisedStreamId, PayloadTooLarge { maximum: usize, actual: usize, }, BufferTooShort { required: usize, available: usize, },
}
Expand description

Failure to construct an HTTP/2 frame in caller-provided storage.

Variants§

§

ZeroStreamId

A frame that requires a stream was given the zero stream identifier.

§

ReservedStreamId

The outgoing stream identifier has its reserved high bit set.

§

ZeroWindowIncrement

A WINDOW_UPDATE frame was given a zero 31-bit increment.

§

ReservedWindowIncrement

The outgoing WINDOW_UPDATE increment has its reserved high bit set.

§

SettingsAckPayload

A SETTINGS ACK frame was given one or more settings.

Fields

§actual: usize

Encoded payload length in bytes.

§

InvalidSettingValue

A SETTINGS parameter has an intrinsically invalid value.

Fields

§id: Http2SettingId

Encoded setting identifier.

§value: u32

Encoded setting value.

§

ReservedLastStreamId

The outgoing GOAWAY last-stream identifier has its reserved high bit set.

§

DataPaddedFlagSet

Caller-supplied DATA flags include PADDED, which is controlled by the padding argument.

§

HeadersPaddedFlagSet

Caller-supplied HEADERS flags include PADDED, which is controlled by the padding argument.

§

HeadersPriorityFlagSet

Caller-supplied HEADERS flags include PRIORITY, which is controlled by the priority argument.

§

PushPromisePaddedFlagSet

Caller-supplied PUSH_PROMISE flags include PADDED, which is controlled by the padding argument.

§

ZeroPromisedStreamId

A PUSH_PROMISE frame was given a zero promised stream identifier.

§

ReservedPromisedStreamId

A PUSH_PROMISE frame was given a promised stream identifier with its reserved bit set.

§

PayloadTooLarge

The payload exceeds the caller-provided maximum or HTTP/2’s 24-bit length field.

Fields

§maximum: usize

Maximum permitted payload length.

§actual: usize

Supplied payload length.

§

BufferTooShort

The caller buffer cannot contain the complete frame.

Fields

§required: usize

Required bytes.

§available: usize

Available bytes.

Trait Implementations§

Source§

impl Clone for Http2BuildError

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 Http2BuildError

Source§

impl Debug for Http2BuildError

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for Http2BuildError

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Eq for Http2BuildError

Source§

impl PartialEq for Http2BuildError

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Http2BuildError

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