pub struct FrameFlags(/* private fields */);Available on crate feature
transport only.Expand description
Frame flags for data frames.
Implementations§
Source§impl FrameFlags
impl FrameFlags
Sourcepub const HAS_EXTENSION: Self
pub const HAS_EXTENSION: Self
Extension data follows payload.
Sourcepub fn is_ack_only(self) -> bool
pub fn is_ack_only(self) -> bool
Check if ACK_ONLY flag is set.
Sourcepub fn has_extension(self) -> bool
pub fn has_extension(self) -> bool
Check if HAS_EXTENSION flag is set.
Sourcepub fn with_ack_only(self) -> Self
pub fn with_ack_only(self) -> Self
Set ACK_ONLY flag.
Sourcepub fn with_extension(self) -> Self
pub fn with_extension(self) -> Self
Set HAS_EXTENSION 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 Default for FrameFlags
impl Default for FrameFlags
Source§fn default() -> FrameFlags
fn default() -> FrameFlags
Returns the “default value” for a type. Read more
Source§impl PartialEq for FrameFlags
impl PartialEq 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