Struct devicemapper::LinearDevTargetTable [−][src]
pub struct LinearDevTargetTable {
pub table: Vec<TargetLine<LinearDevTargetParams>>,
}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
Methods
impl LinearDevTargetTable[src]
impl LinearDevTargetTablepub fn new(
table: Vec<TargetLine<LinearDevTargetParams>>
) -> LinearDevTargetTable[src]
pub fn new(
table: Vec<TargetLine<LinearDevTargetParams>>
) -> LinearDevTargetTableMake a new LinearDevTargetTable from a suitable vec
Trait Implementations
impl Clone for LinearDevTargetTable[src]
impl Clone for LinearDevTargetTablefn clone(&self) -> LinearDevTargetTable[src]
fn clone(&self) -> LinearDevTargetTableReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for LinearDevTargetTable[src]
impl Debug for LinearDevTargetTablefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for LinearDevTargetTable[src]
impl Eq for LinearDevTargetTableimpl PartialEq for LinearDevTargetTable[src]
impl PartialEq for LinearDevTargetTablefn eq(&self, other: &LinearDevTargetTable) -> bool[src]
fn eq(&self, other: &LinearDevTargetTable) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &LinearDevTargetTable) -> bool[src]
fn ne(&self, other: &LinearDevTargetTable) -> boolThis method tests for !=.
impl Display for LinearDevTargetTable[src]
impl Display for LinearDevTargetTablefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl DmDevice<LinearDevTargetTable> for LinearDev[src]
impl DmDevice<LinearDevTargetTable> for LinearDevfn device(&self) -> Device[src]
fn device(&self) -> DeviceThe device.
fn devnode(&self) -> PathBuf[src]
fn devnode(&self) -> PathBufThe device's device node.
fn equivalent_tables(
left: &LinearDevTargetTable,
right: &LinearDevTargetTable
) -> DmResult<bool>[src]
fn equivalent_tables(
left: &LinearDevTargetTable,
right: &LinearDevTargetTable
) -> DmResult<bool>Check if tables indicate an equivalent device.
fn name(&self) -> &DmName[src]
fn name(&self) -> &DmNameThe device's name.
fn size(&self) -> Sectors[src]
fn size(&self) -> SectorsThe number of sectors available for user data.
fn table(&self) -> &LinearDevTargetTable[src]
fn table(&self) -> &LinearDevTargetTableWhat the device thinks its table is.
fn teardown(self, dm: &DM) -> DmResult<()>[src]
fn teardown(self, dm: &DM) -> DmResult<()>Erase the kernel's memory of this device.
fn uuid(&self) -> Option<&DmUuid>[src]
fn uuid(&self) -> Option<&DmUuid>The device's UUID, if available. Note that the UUID is not any standard UUID format. Read more
fn read_kernel_table(dm: &DM, id: &DevId) -> DmResult<T>[src]
fn read_kernel_table(dm: &DM, id: &DevId) -> DmResult<T>Read the devicemapper table
fn resume(&mut self, dm: &DM) -> DmResult<()>[src]
fn resume(&mut self, dm: &DM) -> DmResult<()>Resume I/O on the device.
fn suspend(&mut self, dm: &DM, flush: bool) -> DmResult<()>[src]
fn suspend(&mut self, dm: &DM, flush: bool) -> DmResult<()>Suspend I/O on the device. If flush is true, flush the device first.
fn table_load(&self, dm: &DM, table: &T) -> DmResult<()>[src]
fn table_load(&self, dm: &DM, table: &T) -> DmResult<()>Load a table
Auto Trait Implementations
impl Send for LinearDevTargetTable
impl Send for LinearDevTargetTableimpl Sync for LinearDevTargetTable
impl Sync for LinearDevTargetTable