pub struct MetaEntryFlags(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl MetaEntryFlags
impl MetaEntryFlags
Sourcepub fn cold(&self) -> bool
pub fn cold(&self) -> bool
The SST file was compacted and none of the entries have been accessed recently. Only relevant for bottom files
Sourcepub fn set_cold(&mut self, value: bool)
pub fn set_cold(&mut self, value: bool)
The SST file was compacted and none of the entries have been accessed recently. Only relevant for bottom files
Sourcepub fn set_fresh(&mut self, value: bool)
pub fn set_fresh(&mut self, value: bool)
The SST file was freshly written and has not been compacted yet.
Sourcepub fn set_bottom(&mut self, value: bool)
pub fn set_bottom(&mut self, value: bool)
The SST file is part of the bottom run of its shard.
Source§impl MetaEntryFlags
impl MetaEntryFlags
pub const FRESH: MetaEntryFlags
pub const COMPACTED: MetaEntryFlags
pub const COLD_BOTTOM: MetaEntryFlags
pub const HOT_BOTTOM: MetaEntryFlags
Trait Implementations§
Source§impl<T> BitRange<T> for MetaEntryFlagswhere
u32: BitRange<T>,
impl<T> BitRange<T> for MetaEntryFlagswhere
u32: BitRange<T>,
Source§impl<T> BitRangeMut<T> for MetaEntryFlagswhere
u32: BitRangeMut<T>,
impl<T> BitRangeMut<T> for MetaEntryFlagswhere
u32: BitRangeMut<T>,
Source§fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
Set a range of bits.
Source§impl Clone for MetaEntryFlags
impl Clone for MetaEntryFlags
impl Copy for MetaEntryFlags
Source§impl Debug for MetaEntryFlags
impl Debug for MetaEntryFlags
Source§impl Default for MetaEntryFlags
impl Default for MetaEntryFlags
Auto Trait Implementations§
impl Freeze for MetaEntryFlags
impl RefUnwindSafe for MetaEntryFlags
impl Send for MetaEntryFlags
impl Sync for MetaEntryFlags
impl Unpin for MetaEntryFlags
impl UnsafeUnpin for MetaEntryFlags
impl UnwindSafe for MetaEntryFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more