pub struct SwapInfo {
pub source: PathBuf,
pub kind: OsString,
pub size: usize,
pub used: usize,
pub priority: isize,
}
Expand description
A swap entry, which defines an active swap.
Fields§
§source: PathBuf
The path where the swap originates from.
kind: OsString
The kind of swap, such as partition
or file
.
size: usize
The size of the swap partition.
used: usize
Whether the swap is used or not.
priority: isize
The priority of a swap, which indicates the order of usage.
Implementations§
Trait Implementations§
impl Eq for SwapInfo
impl StructuralPartialEq for SwapInfo
Auto Trait Implementations§
impl Freeze for SwapInfo
impl RefUnwindSafe for SwapInfo
impl Send for SwapInfo
impl Sync for SwapInfo
impl Unpin for SwapInfo
impl UnwindSafe for SwapInfo
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