Struct devicemapper::LinearDevTargetTable
source · pub struct LinearDevTargetTable {
pub table: Vec<TargetLine<LinearDevTargetParams>>,
}Expand description
A target table for a linear device. Such a table allows flakey targets as well as linear targets.
Fields§
§table: Vec<TargetLine<LinearDevTargetParams>>The device’s table
Implementations§
source§impl LinearDevTargetTable
impl LinearDevTargetTable
sourcepub fn new(
table: Vec<TargetLine<LinearDevTargetParams>>
) -> LinearDevTargetTable
pub fn new( table: Vec<TargetLine<LinearDevTargetParams>> ) -> LinearDevTargetTable
Make a new LinearDevTargetTable from a suitable vec
Trait Implementations§
source§impl Clone for LinearDevTargetTable
impl Clone for LinearDevTargetTable
source§fn clone(&self) -> LinearDevTargetTable
fn clone(&self) -> LinearDevTargetTable
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 LinearDevTargetTable
impl Debug for LinearDevTargetTable
source§impl Display for LinearDevTargetTable
impl Display for LinearDevTargetTable
source§impl DmDevice<LinearDevTargetTable> for LinearDev
impl DmDevice<LinearDevTargetTable> for LinearDev
source§fn equivalent_tables(
left: &LinearDevTargetTable,
right: &LinearDevTargetTable
) -> DmResult<bool>
fn equivalent_tables( left: &LinearDevTargetTable, right: &LinearDevTargetTable ) -> DmResult<bool>
Check if tables indicate an equivalent device.
source§fn table(&self) -> &LinearDevTargetTable
fn table(&self) -> &LinearDevTargetTable
What the device thinks its table is.
source§impl PartialEq for LinearDevTargetTable
impl PartialEq for LinearDevTargetTable
source§fn eq(&self, other: &LinearDevTargetTable) -> bool
fn eq(&self, other: &LinearDevTargetTable) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TargetTable for LinearDevTargetTable
impl TargetTable for LinearDevTargetTable
impl Eq for LinearDevTargetTable
impl StructuralPartialEq for LinearDevTargetTable
Auto Trait Implementations§
impl Freeze for LinearDevTargetTable
impl RefUnwindSafe for LinearDevTargetTable
impl Send for LinearDevTargetTable
impl Sync for LinearDevTargetTable
impl Unpin for LinearDevTargetTable
impl UnwindSafe for LinearDevTargetTable
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