Struct devicemapper::CacheTargetParams
source · pub struct CacheTargetParams {
pub meta: Device,
pub cache: Device,
pub origin: Device,
pub cache_block_size: Sectors,
pub feature_args: HashSet<String>,
pub policy: String,
pub policy_args: HashMap<String, String>,
}Expand description
Struct representing params for a cache target
Fields§
§meta: DeviceCache metadata device
cache: DeviceCache device
origin: DeviceOrigin device with data to be cached
cache_block_size: SectorsCache block size
feature_args: HashSet<String>Feature arguments
policy: StringIO policy
policy_args: HashMap<String, String>IO policy arguments
Implementations§
Trait Implementations§
source§impl Clone for CacheTargetParams
impl Clone for CacheTargetParams
source§fn clone(&self) -> CacheTargetParams
fn clone(&self) -> CacheTargetParams
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 CacheTargetParams
impl Debug for CacheTargetParams
source§impl Display for CacheTargetParams
impl Display for CacheTargetParams
source§impl FromStr for CacheTargetParams
impl FromStr for CacheTargetParams
source§impl PartialEq for CacheTargetParams
impl PartialEq for CacheTargetParams
source§fn eq(&self, other: &CacheTargetParams) -> bool
fn eq(&self, other: &CacheTargetParams) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TargetParams for CacheTargetParams
impl TargetParams for CacheTargetParams
source§fn target_type(&self) -> TargetTypeBuf
fn target_type(&self) -> TargetTypeBuf
Return the target type
impl Eq for CacheTargetParams
impl StructuralEq for CacheTargetParams
impl StructuralPartialEq for CacheTargetParams
Auto Trait Implementations§
impl RefUnwindSafe for CacheTargetParams
impl Send for CacheTargetParams
impl Sync for CacheTargetParams
impl Unpin for CacheTargetParams
impl UnwindSafe for CacheTargetParams
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