pub struct SessionFlags(/* private fields */);Expand description
Flags for session headers (compact, 1 byte).
Implementations§
Source§impl SessionFlags
impl SessionFlags
Sourcepub const FULL_SNAPSHOT: u8
pub const FULL_SNAPSHOT: u8
Flag indicating a full snapshot packet.
Sourcepub const DELTA_SNAPSHOT: u8
pub const DELTA_SNAPSHOT: u8
Flag indicating a delta snapshot packet.
Sourcepub const fn is_full_snapshot(self) -> bool
pub const fn is_full_snapshot(self) -> bool
Returns true if this is a full snapshot.
Sourcepub const fn is_delta_snapshot(self) -> bool
pub const fn is_delta_snapshot(self) -> bool
Returns true if this is a delta snapshot.
Sourcepub const fn is_valid(self) -> bool
pub const fn is_valid(self) -> bool
Returns true if flags are valid (exactly one snapshot bit, no reserved).
Sourcepub const fn full_snapshot() -> Self
pub const fn full_snapshot() -> Self
Creates flags for a full snapshot.
Sourcepub const fn delta_snapshot() -> Self
pub const fn delta_snapshot() -> Self
Creates flags for a delta snapshot.
Trait Implementations§
Source§impl Clone for SessionFlags
impl Clone for SessionFlags
Source§fn clone(&self) -> SessionFlags
fn clone(&self) -> SessionFlags
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 SessionFlags
impl Debug for SessionFlags
Source§impl Default for SessionFlags
impl Default for SessionFlags
Source§fn default() -> SessionFlags
fn default() -> SessionFlags
Returns the “default value” for a type. Read more
Source§impl Hash for SessionFlags
impl Hash for SessionFlags
Source§impl PartialEq for SessionFlags
impl PartialEq for SessionFlags
impl Copy for SessionFlags
impl Eq for SessionFlags
impl StructuralPartialEq for SessionFlags
Auto Trait Implementations§
impl Freeze for SessionFlags
impl RefUnwindSafe for SessionFlags
impl Send for SessionFlags
impl Sync for SessionFlags
impl Unpin for SessionFlags
impl UnwindSafe for SessionFlags
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