pub struct ZramDevice {
pub name: String,
pub orig_data_size: u64,
pub compr_data_size: u64,
pub mem_used_total: u64,
}Expand description
One compressed RAM block device (/sys/block/zram<N>).
Fields§
§name: String§orig_data_size: u64Uncompressed size of the data held, in bytes.
compr_data_size: u64Size actually occupied in RAM after compression, in bytes.
mem_used_total: u64Bytes of RAM the device has taken from the allocator.
Implementations§
Trait Implementations§
Source§impl Clone for ZramDevice
impl Clone for ZramDevice
Source§impl Debug for ZramDevice
impl Debug for ZramDevice
Source§impl Default for ZramDevice
impl Default for ZramDevice
impl Eq for ZramDevice
Source§impl PartialEq for ZramDevice
impl PartialEq for ZramDevice
impl StructuralPartialEq for ZramDevice
Auto Trait Implementations§
impl Freeze for ZramDevice
impl RefUnwindSafe for ZramDevice
impl Send for ZramDevice
impl Sync for ZramDevice
impl Unpin for ZramDevice
impl UnsafeUnpin for ZramDevice
impl UnwindSafe for ZramDevice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more