pub struct FrameFlags(/* private fields */);Expand description
Frame flags bitfield.
Implementations§
Source§impl FrameFlags
impl FrameFlags
Sourcepub const CRC_PRESENT: u16
pub const CRC_PRESENT: u16
CRC32C checksum is present and valid.
Sourcepub const COMPRESSED: u16
pub const COMPRESSED: u16
Payload is compressed (reserved for future use).
Sourcepub const END_STREAM: u16
pub const END_STREAM: u16
Final frame of a stream.
pub fn new() -> Self
pub fn with_crc(self) -> Self
pub fn with_stream(self) -> Self
pub fn with_end_stream(self) -> Self
pub fn has_crc(&self) -> bool
pub fn is_compressed(&self) -> bool
pub fn is_stream(&self) -> bool
pub fn is_end_stream(&self) -> bool
pub fn bits(&self) -> u16
pub fn from_bits(bits: u16) -> Result<Self, ProtocolError>
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 UnsafeUnpin 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