Enum http_box::http2::FrameType
[−]
[src]
#[repr(u8)]pub enum FrameType { Continuation, Data, GoAway, Headers, Ping, Priority, PushPromise, RstStream, Settings, WindowUpdate, Unsupported, }
Frame types.
Variants
ContinuationContinuation frame.
DataData frame.
GoAwayGo away frame.
HeadersHeaders frame.
PingPing frame.
PriorityPriority frame.
PushPromisePush promise frame.
RstStreamReset stream frame.
SettingsSettings frame.
WindowUpdateWindow update frame.
UnsupportedUnsupported frame.
Methods
impl FrameType[src]
fn from_u8(byte: u8) -> FrameType
Create a new FrameType from a u8.
fn as_byte(&self) -> u8
Convert this frame type to a byte value.
fn is_continuation(&self) -> bool
Indicates that this is a FrameType::Continuation.
fn is_data(&self) -> bool
Indicates that this is a FrameType::Data.
fn is_go_away(&self) -> bool
Indicates that this is a FrameType::GoAway.
fn is_headers(&self) -> bool
Indicates that this is a FrameType::Headers.
fn is_push_ping(&self) -> bool
Indicates that this is a FrameType::Ping.
fn is_priority(&self) -> bool
Indicates that this is a FrameType::Priority.
fn is_push_promise(&self) -> bool
Indicates that this is a FrameType::PushPromise.
fn is_rst_stream(&self) -> bool
Indicates that this is a FrameType::RstStream.
fn is_settings(&self) -> bool
Indicates that this is a FrameType::Settings.
fn is_unsupported(&self) -> bool
Indicates that this is a FrameType::Unsupported.
fn is_window_update(&self) -> bool
Indicates that this is a FrameType::WindowUpdate.
Trait Implementations
impl Clone for FrameType[src]
fn clone(&self) -> FrameType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Copy for FrameType[src]
impl PartialEq for FrameType[src]
fn eq(&self, __arg_0: &FrameType) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.