pub struct Zswap {
pub accept_threshold_percent: Option<u8>,
pub compressor: Option<String>,
pub enabled: Option<bool>,
pub max_pool_percent: Option<u8>,
pub non_same_filled_pages_enabled: Option<bool>,
pub same_filled_pages_enabled: Option<bool>,
pub zpool: Option<String>,
pub pool_total_size: Option<Size>,
pub stored_pages_size: Option<Size>,
pub compression_ratio: Option<f32>,
}Fields§
§accept_threshold_percent: Option<u8>§compressor: Option<String>§enabled: Option<bool>§max_pool_percent: Option<u8>§non_same_filled_pages_enabled: Option<bool>§same_filled_pages_enabled: Option<bool>§zpool: Option<String>§pool_total_size: Option<Size>§stored_pages_size: Option<Size>§compression_ratio: Option<f32>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Zswap
impl RefUnwindSafe for Zswap
impl Send for Zswap
impl Sync for Zswap
impl Unpin for Zswap
impl UnsafeUnpin for Zswap
impl UnwindSafe for Zswap
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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