#[repr(i32)]pub enum CpuPriority {
KIdle = 0,
KLow = 1,
KNormal = 2,
KHigh = 3,
}Expand description
CPU priority for the background threads that copy files during a backup.
Mirrors rocksdb::CpuPriority in include/rocksdb/port_defs.h. The
discriminants are the upstream values, which is what the C API expects.
Variants§
Trait Implementations§
Source§impl Clone for CpuPriority
impl Clone for CpuPriority
Source§fn clone(&self) -> CpuPriority
fn clone(&self) -> CpuPriority
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 CpuPriority
Source§impl Debug for CpuPriority
impl Debug for CpuPriority
impl Eq for CpuPriority
Source§impl From<i32> for CpuPriority
impl From<i32> for CpuPriority
Source§fn from(value: i32) -> Self
fn from(value: i32) -> Self
Values RocksDB does not define map to CpuPriority::KNormal, which
is both the upstream default for background_thread_cpu_priority and
the priority the copy threads start at.
Source§impl PartialEq for CpuPriority
impl PartialEq for CpuPriority
impl StructuralPartialEq for CpuPriority
Auto Trait Implementations§
impl Freeze for CpuPriority
impl RefUnwindSafe for CpuPriority
impl Send for CpuPriority
impl Sync for CpuPriority
impl Unpin for CpuPriority
impl UnsafeUnpin for CpuPriority
impl UnwindSafe for CpuPriority
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