#[repr(u8)]pub enum ChunkFlags {
None = 0,
Last = 1,
Compressed = 2,
RequiresAck = 4,
Retransmit = 8,
}Variants§
Implementations§
Source§impl ChunkFlags
impl ChunkFlags
pub fn from_u8(value: u8) -> Self
pub fn as_u8(self) -> u8
pub fn has_flag(flags: u8, flag: ChunkFlags) -> bool
pub fn set_flag(flags: &mut u8, flag: ChunkFlags)
pub fn clear_flag(flags: &mut u8, flag: ChunkFlags)
Trait Implementations§
Source§impl Clone for ChunkFlags
impl Clone for ChunkFlags
Source§fn clone(&self) -> ChunkFlags
fn clone(&self) -> ChunkFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChunkFlags
Source§impl Debug for ChunkFlags
impl Debug for ChunkFlags
impl Eq for ChunkFlags
Source§impl PartialEq for ChunkFlags
impl PartialEq for ChunkFlags
Source§fn eq(&self, other: &ChunkFlags) -> bool
fn eq(&self, other: &ChunkFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChunkFlags
Auto Trait Implementations§
impl Freeze for ChunkFlags
impl RefUnwindSafe for ChunkFlags
impl Send for ChunkFlags
impl Sync for ChunkFlags
impl Unpin for ChunkFlags
impl UnsafeUnpin for ChunkFlags
impl UnwindSafe for ChunkFlags
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