#[repr(u8)]pub enum FrameType {
Continuation = 9,
Data = 0,
GoAway = 7,
Headers = 1,
Ping = 6,
Priority = 2,
PushPromise = 5,
RstStream = 3,
Settings = 4,
WindowUpdate = 8,
Unsupported = 255,
}Expand description
Frame types.
Variants§
Continuation = 9
Continuation frame.
Data = 0
Data frame.
GoAway = 7
Go away frame.
Headers = 1
Headers frame.
Ping = 6
Ping frame.
Priority = 2
Priority frame.
PushPromise = 5
Push promise frame.
RstStream = 3
Reset stream frame.
Settings = 4
Settings frame.
WindowUpdate = 8
Window update frame.
Unsupported = 255
Unsupported frame.
Implementations§
Source§impl FrameType
impl FrameType
Sourcepub fn is_continuation(&self) -> bool
pub fn is_continuation(&self) -> bool
Indicates that this is a FrameType::Continuation.
Sourcepub fn is_go_away(&self) -> bool
pub fn is_go_away(&self) -> bool
Indicates that this is a FrameType::GoAway.
Sourcepub fn is_headers(&self) -> bool
pub fn is_headers(&self) -> bool
Indicates that this is a FrameType::Headers.
Sourcepub fn is_push_ping(&self) -> bool
pub fn is_push_ping(&self) -> bool
Indicates that this is a FrameType::Ping.
Sourcepub fn is_priority(&self) -> bool
pub fn is_priority(&self) -> bool
Indicates that this is a FrameType::Priority.
Sourcepub fn is_push_promise(&self) -> bool
pub fn is_push_promise(&self) -> bool
Indicates that this is a FrameType::PushPromise.
Sourcepub fn is_rst_stream(&self) -> bool
pub fn is_rst_stream(&self) -> bool
Indicates that this is a FrameType::RstStream.
Sourcepub fn is_settings(&self) -> bool
pub fn is_settings(&self) -> bool
Indicates that this is a FrameType::Settings.
Sourcepub fn is_unsupported(&self) -> bool
pub fn is_unsupported(&self) -> bool
Indicates that this is a FrameType::Unsupported.
Sourcepub fn is_window_update(&self) -> bool
pub fn is_window_update(&self) -> bool
Indicates that this is a FrameType::WindowUpdate.
Trait Implementations§
impl Copy for FrameType
impl StructuralPartialEq for FrameType
Auto Trait Implementations§
impl Freeze for FrameType
impl RefUnwindSafe for FrameType
impl Send for FrameType
impl Sync for FrameType
impl Unpin for FrameType
impl UnwindSafe for FrameType
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