pub struct FrameFlags(pub u8);Expand description
Frame flags for protocol control
Tuple Fields§
§0: u8Implementations§
Source§impl FrameFlags
impl FrameFlags
Sourcepub const END_STREAM: Self
pub const END_STREAM: Self
End of stream flag
Sourcepub const FLOW_CONTROL: Self
pub const FLOW_CONTROL: Self
Flow control flag
Sourcepub fn has_flag(self, flag: FrameFlags) -> bool
pub fn has_flag(self, flag: FrameFlags) -> bool
Check if a flag is set
Sourcepub fn set_flag(&mut self, flag: FrameFlags)
pub fn set_flag(&mut self, flag: FrameFlags)
Set a flag
Sourcepub fn clear_flag(&mut self, flag: FrameFlags)
pub fn clear_flag(&mut self, flag: FrameFlags)
Clear a flag
Trait Implementations§
Source§impl Clone for FrameFlags
impl Clone for FrameFlags
Source§fn clone(&self) -> FrameFlags
fn clone(&self) -> FrameFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameFlags
impl Debug for FrameFlags
Source§impl<'de> Deserialize<'de> for FrameFlags
impl<'de> Deserialize<'de> for FrameFlags
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FrameFlags
impl PartialEq for FrameFlags
Source§impl Serialize for FrameFlags
impl Serialize for FrameFlags
impl Copy for FrameFlags
impl Eq for FrameFlags
impl StructuralPartialEq for FrameFlags
Auto Trait Implementations§
impl Freeze for FrameFlags
impl RefUnwindSafe for FrameFlags
impl Send for FrameFlags
impl Sync for FrameFlags
impl Unpin for FrameFlags
impl UnwindSafe for FrameFlags
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