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 moresource§impl Debug for DeviceInfo
impl Debug for DeviceInfo
Auto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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