Struct devicemapper::LinearTargetParams
source · pub struct LinearTargetParams {
pub device: Device,
pub start_offset: Sectors,
}Expand description
Struct representing params for a linear target
Fields§
§device: DeviceDevice on which this segment resides.
start_offset: SectorsStart offset in device on which this segment resides.
Implementations§
source§impl LinearTargetParams
impl LinearTargetParams
sourcepub fn new(device: Device, start_offset: Sectors) -> LinearTargetParams
pub fn new(device: Device, start_offset: Sectors) -> LinearTargetParams
Create a new LinearTargetParams struct
Trait Implementations§
source§impl Clone for LinearTargetParams
impl Clone for LinearTargetParams
source§fn clone(&self) -> LinearTargetParams
fn clone(&self) -> LinearTargetParams
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 LinearTargetParams
impl Debug for LinearTargetParams
source§impl Display for LinearTargetParams
impl Display for LinearTargetParams
source§impl FromStr for LinearTargetParams
impl FromStr for LinearTargetParams
source§impl PartialEq for LinearTargetParams
impl PartialEq for LinearTargetParams
source§fn eq(&self, other: &LinearTargetParams) -> bool
fn eq(&self, other: &LinearTargetParams) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TargetParams for LinearTargetParams
impl TargetParams for LinearTargetParams
source§fn target_type(&self) -> TargetTypeBuf
fn target_type(&self) -> TargetTypeBuf
Return the target type
impl Eq for LinearTargetParams
impl StructuralPartialEq for LinearTargetParams
Auto Trait Implementations§
impl Freeze for LinearTargetParams
impl RefUnwindSafe for LinearTargetParams
impl Send for LinearTargetParams
impl Sync for LinearTargetParams
impl Unpin for LinearTargetParams
impl UnwindSafe for LinearTargetParams
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