pub struct CacheDevTargetTable {
    pub table: TargetLine<CacheTargetParams>,
}
Expand description

A target table for a cache device.

Fields§

§table: TargetLine<CacheTargetParams>

The device’s table

Implementations§

source§

impl CacheDevTargetTable

source

pub fn new( start: Sectors, length: Sectors, params: CacheTargetParams ) -> CacheDevTargetTable

Make a new CacheDevTargetTable from the required input

Trait Implementations§

source§

impl Clone for CacheDevTargetTable

source§

fn clone(&self) -> CacheDevTargetTable

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CacheDevTargetTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CacheDevTargetTable

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl DmDevice<CacheDevTargetTable> for CacheDev

source§

fn device(&self) -> Device

The device.
source§

fn devnode(&self) -> PathBuf

The device’s device node.
source§

fn equivalent_tables( left: &CacheDevTargetTable, right: &CacheDevTargetTable ) -> DmResult<bool>

Check if tables indicate an equivalent device.
source§

fn name(&self) -> &DmName

The device’s name.
source§

fn size(&self) -> Sectors

The number of sectors available for user data.
source§

fn table(&self) -> &CacheDevTargetTable

What the device thinks its table is.
source§

fn teardown(&mut self, dm: &DM) -> DmResult<()>

Erase the kernel’s memory of this device.
source§

fn uuid(&self) -> Option<&DmUuid>

The device’s UUID, if available. Note that the UUID is not any standard UUID format.
source§

fn read_kernel_table(dm: &DM, id: &DevId<'_>) -> DmResult<T>

Read the devicemapper table
source§

fn resume(&mut self, dm: &DM) -> DmResult<()>

Resume I/O on the device.
source§

fn suspend(&mut self, dm: &DM, options: DmOptions) -> DmResult<()>

Suspend I/O on the device.
source§

fn table_load(&self, dm: &DM, table: &T, options: DmOptions) -> DmResult<()>

Load a table
source§

impl PartialEq for CacheDevTargetTable

source§

fn eq(&self, other: &CacheDevTargetTable) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TargetTable for CacheDevTargetTable

source§

fn from_raw_table( table: &[(u64, u64, String, String)] ) -> DmResult<CacheDevTargetTable>

Constructs a table from a raw table returned by DM::table_status()
source§

fn to_raw_table(&self) -> Vec<(u64, u64, String, String)>

Generates a table that can be loaded by DM::table_load()
source§

impl Eq for CacheDevTargetTable

source§

impl StructuralPartialEq for CacheDevTargetTable

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V