#[repr(i32)]pub enum Temperature {
Unknown = 0,
Hot = 4,
Warm = 8,
Cool = 10,
Cold = 12,
Ice = 16,
}Expand description
Storage tier hint for a file, passed through to the FileSystem so it can
place or encode the file differently.
Mirrors rocksdb::Temperature from include/rocksdb/types.h, including its
discriminants, so Temperature::Warm as i32 is a valid argument to the
*_temperature setters on Options. Values RocksDB adds
in future versions decode as Temperature::Unknown, as does the
kLastTemperature sentinel, which is not a real tier.
Upstream leaves gaps between the discriminants so new tiers can be slotted in. This feature is experimental upstream and subject to change.
Variants§
Unknown = 0
No tier recorded. Also the decoding of any unrecognised value.
Hot = 4
Frequently read.
Warm = 8
Read now and then.
Cool = 10
Rarely read.
Cold = 12
Read very rarely.
Ice = 16
Archival; expect slow reads.
Implementations§
Trait Implementations§
Source§impl Clone for Temperature
impl Clone for Temperature
Source§fn clone(&self) -> Temperature
fn clone(&self) -> Temperature
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 Temperature
Source§impl Debug for Temperature
impl Debug for Temperature
impl Eq for Temperature
Source§impl From<i32> for Temperature
impl From<i32> for Temperature
Source§impl Hash for Temperature
impl Hash for Temperature
Source§impl PartialEq for Temperature
impl PartialEq for Temperature
impl StructuralPartialEq for Temperature
Auto Trait Implementations§
impl Freeze for Temperature
impl RefUnwindSafe for Temperature
impl Send for Temperature
impl Sync for Temperature
impl Unpin for Temperature
impl UnsafeUnpin for Temperature
impl UnwindSafe for Temperature
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