Struct devicemapper::DeviceInfo
source · pub struct DeviceInfo { /* private fields */ }Expand description
Contains information about the device.
Implementations§
source§impl DeviceInfo
impl DeviceInfo
sourcepub fn new(hdr: Struct_dm_ioctl) -> DmResult<Self>
pub fn new(hdr: Struct_dm_ioctl) -> DmResult<Self>
Parses a DM ioctl structure.
Equivalent to DeviceInfo::try_from(hdr).
sourcepub fn open_count(&self) -> i32
pub fn open_count(&self) -> i32
The number of times the device is currently open.
Trait Implementations§
source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
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 more