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: Device
Cache metadata device
cache: Device
Cache device
origin: Device
Origin device with data to be cached
cache_block_size: Sectors
Cache block size
feature_args: HashSet<String>
Feature arguments
policy: String
IO 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 duplicate 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§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 StructuralPartialEq for CacheTargetParams
Auto Trait Implementations§
impl Freeze for CacheTargetParams
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