Struct proc_mounts::SwapInfo
source · [−]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 StructuralEq for SwapInfo
impl StructuralPartialEq for SwapInfo
Auto Trait Implementations
impl RefUnwindSafe for SwapInfo
impl Send for SwapInfo
impl Sync for SwapInfo
impl Unpin for SwapInfo
impl UnwindSafe for SwapInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more