#[repr(u16)]pub enum FrameT {
Data = 1,
Headers = 2,
Priority = 4,
RstStream = 8,
Settings = 16,
PushPromise = 32,
Ping = 64,
GoAway = 128,
WindowUpdate = 256,
Continuation = 512,
Unknown = 1_024,
}Expand description
A “hollow” variant of FrameType, with no associated data. Useful to expect a certain frame type
Variants§
Data = 1
Headers = 2
Priority = 4
RstStream = 8
Settings = 16
PushPromise = 32
Ping = 64
GoAway = 128
WindowUpdate = 256
Continuation = 512
Unknown = 1_024
Trait Implementations§
source§impl BitFlag for FrameT
impl BitFlag for FrameT
source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags with no flags set (in other words, with a value of 0). Read moresource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags if the raw value provided does not contain
any illegal flags. Read moresource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moresource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read moresource§impl PartialEq for FrameT
impl PartialEq for FrameT
source§impl RawBitFlags for FrameT
impl RawBitFlags for FrameT
source§const EMPTY: Self::Numeric = {transmute(0x0000): <FrameT as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x0000): <FrameT as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
source§const DEFAULT: Self::Numeric = {transmute(0x0000): <FrameT as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x0000): <FrameT as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
source§const ALL_BITS: Self::Numeric = {transmute(0x07ff): <FrameT as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x07ff): <FrameT as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<FrameT>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<FrameT>"
The name of the type for debug formatting purposes. Read more
impl Copy for FrameT
impl Eq for FrameT
impl StructuralPartialEq for FrameT
Auto Trait Implementations§
impl Freeze for FrameT
impl RefUnwindSafe for FrameT
impl Send for FrameT
impl Sync for FrameT
impl Unpin for FrameT
impl UnwindSafe for FrameT
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