pub enum CachePolicy {
Enabled,
Auto,
Disabled,
Unknown,
UseDiskSetting,
}
Expand description
Represent a volume cache policy.
Variants§
Enabled
Cache is enabled.
Auto
Storage system will determine whether to use cache based on battery/capacitor health.
Disabled
Cache is disabled.
Unknown
Plugin failed to query cache setting.
UseDiskSetting
Physical disk cache is determined by the disk vendor via physical
disks’ SCSI caching mode page(0x08
page).
Trait Implementations§
source§impl Clone for CachePolicy
impl Clone for CachePolicy
source§fn clone(&self) -> CachePolicy
fn clone(&self) -> CachePolicy
Returns a copy 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 CachePolicy
impl Debug for CachePolicy
source§impl PartialEq for CachePolicy
impl PartialEq for CachePolicy
impl Copy for CachePolicy
impl StructuralPartialEq for CachePolicy
Auto Trait Implementations§
impl Freeze for CachePolicy
impl RefUnwindSafe for CachePolicy
impl Send for CachePolicy
impl Sync for CachePolicy
impl Unpin for CachePolicy
impl UnwindSafe for CachePolicy
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)