Struct devicemapper::LinearTargetParams
[−]
[src]
pub struct LinearTargetParams {
pub device: Device,
pub start_offset: Sectors,
}Struct representing params for a linear target
Fields
device: Device
Device on which this segment resides.
start_offset: Sectors
Start offset in device on which this segment resides.
Methods
impl LinearTargetParams[src]
pub fn new(device: Device, start_offset: Sectors) -> LinearTargetParams[src]
Create a new LinearTargetParams struct
Trait Implementations
impl Clone for LinearTargetParams[src]
fn clone(&self) -> LinearTargetParams[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for LinearTargetParams[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Eq for LinearTargetParams[src]
impl PartialEq for LinearTargetParams[src]
fn eq(&self, __arg_0: &LinearTargetParams) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &LinearTargetParams) -> bool[src]
This method tests for !=.
impl Display for LinearTargetParams[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more