Struct libdevmapper_sys::dm_status_snapshot
source · #[repr(C)]pub struct dm_status_snapshot {
pub used_sectors: u64,
pub total_sectors: u64,
pub metadata_sectors: u64,
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
pub __bindgen_padding_0: [u8; 7],
}
Fields
used_sectors: u64
total_sectors: u64
metadata_sectors: u64
_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>
__bindgen_padding_0: [u8; 7]
Implementations
sourceimpl dm_status_snapshot
impl dm_status_snapshot
pub fn has_metadata_sectors(&self) -> c_uint
pub fn set_has_metadata_sectors(&mut self, val: c_uint)
pub fn invalid(&self) -> c_uint
pub fn set_invalid(&mut self, val: c_uint)
pub fn merge_failed(&self) -> c_uint
pub fn set_merge_failed(&mut self, val: c_uint)
pub fn overflow(&self) -> c_uint
pub fn set_overflow(&mut self, val: c_uint)
pub fn new_bitfield_1(
has_metadata_sectors: c_uint,
invalid: c_uint,
merge_failed: c_uint,
overflow: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
Trait Implementations
sourceimpl Clone for dm_status_snapshot
impl Clone for dm_status_snapshot
sourcefn clone(&self) -> dm_status_snapshot
fn clone(&self) -> dm_status_snapshot
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for dm_status_snapshot
impl Debug for dm_status_snapshot
impl Copy for dm_status_snapshot
Auto Trait Implementations
impl RefUnwindSafe for dm_status_snapshot
impl Send for dm_status_snapshot
impl Sync for dm_status_snapshot
impl Unpin for dm_status_snapshot
impl UnwindSafe for dm_status_snapshot
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more