pub struct SegmentFlags(/* private fields */);Expand description
Bitfield wrapper around the 16-bit segment flags.
Bits 12-15 are reserved and must be zero.
Implementations§
Source§impl SegmentFlags
impl SegmentFlags
Sourcepub const COMPRESSED: u16 = 0x0001
pub const COMPRESSED: u16 = 0x0001
Payload is compressed per the compression header field.
Sourcepub const CHECKPOINT: u16 = 0x0200
pub const CHECKPOINT: u16 = 0x0200
Segment is a safe rollback point.
Sourcepub const HAS_LINEAGE: u16 = 0x0800
pub const HAS_LINEAGE: u16 = 0x0800
File carries DNA-style lineage provenance metadata.
Trait Implementations§
Source§impl Clone for SegmentFlags
impl Clone for SegmentFlags
Source§fn clone(&self) -> SegmentFlags
fn clone(&self) -> SegmentFlags
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 SegmentFlags
impl Debug for SegmentFlags
Source§impl Hash for SegmentFlags
impl Hash for SegmentFlags
Source§impl PartialEq for SegmentFlags
impl PartialEq for SegmentFlags
impl Copy for SegmentFlags
impl Eq for SegmentFlags
impl StructuralPartialEq for SegmentFlags
Auto Trait Implementations§
impl Freeze for SegmentFlags
impl RefUnwindSafe for SegmentFlags
impl Send for SegmentFlags
impl Sync for SegmentFlags
impl Unpin for SegmentFlags
impl UnwindSafe for SegmentFlags
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