Struct devicemapper::ThinPoolTargetParams
source · pub struct ThinPoolTargetParams {
pub metadata_dev: Device,
pub data_dev: Device,
pub data_block_size: Sectors,
pub low_water_mark: DataBlocks,
pub feature_args: HashSet<String>,
}
Expand description
Struct representing params for a thin pool target
Fields§
§metadata_dev: Device
Thin pool metadata device
data_dev: Device
Thin pool data device
data_block_size: Sectors
Block size for allocations within the thin pool
low_water_mark: DataBlocks
Amount of free space left at which to trigger the low water mark
feature_args: HashSet<String>
Feature arguments
Implementations§
source§impl ThinPoolTargetParams
impl ThinPoolTargetParams
sourcepub fn new(
metadata_dev: Device,
data_dev: Device,
data_block_size: Sectors,
low_water_mark: DataBlocks,
feature_args: Vec<String>
) -> ThinPoolTargetParams
pub fn new( metadata_dev: Device, data_dev: Device, data_block_size: Sectors, low_water_mark: DataBlocks, feature_args: Vec<String> ) -> ThinPoolTargetParams
Create a new ThinPoolTargetParams struct
Trait Implementations§
source§impl Clone for ThinPoolTargetParams
impl Clone for ThinPoolTargetParams
source§fn clone(&self) -> ThinPoolTargetParams
fn clone(&self) -> ThinPoolTargetParams
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 ThinPoolTargetParams
impl Debug for ThinPoolTargetParams
source§impl Display for ThinPoolTargetParams
impl Display for ThinPoolTargetParams
source§impl FromStr for ThinPoolTargetParams
impl FromStr for ThinPoolTargetParams
source§impl PartialEq for ThinPoolTargetParams
impl PartialEq for ThinPoolTargetParams
source§fn eq(&self, other: &ThinPoolTargetParams) -> bool
fn eq(&self, other: &ThinPoolTargetParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TargetParams for ThinPoolTargetParams
impl TargetParams for ThinPoolTargetParams
source§fn target_type(&self) -> TargetTypeBuf
fn target_type(&self) -> TargetTypeBuf
Return the target type
impl Eq for ThinPoolTargetParams
impl StructuralPartialEq for ThinPoolTargetParams
Auto Trait Implementations§
impl Freeze for ThinPoolTargetParams
impl RefUnwindSafe for ThinPoolTargetParams
impl Send for ThinPoolTargetParams
impl Sync for ThinPoolTargetParams
impl Unpin for ThinPoolTargetParams
impl UnwindSafe for ThinPoolTargetParams
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