[−][src]Struct proc_mounts::SwapInfo
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.
Methods
impl SwapInfo
[src]
pub fn parse_line(line: &str) -> Result<SwapInfo>
[src]
Deprecated
Trait Implementations
impl Clone for SwapInfo
[src]
impl Eq for SwapInfo
[src]
impl PartialEq<SwapInfo> for SwapInfo
[src]
impl Display for SwapInfo
[src]
impl Debug for SwapInfo
[src]
impl FromStr for SwapInfo
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(line: &str) -> Result<Self, Self::Err>
[src]
impl Hash for SwapInfo
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl StructuralPartialEq for SwapInfo
[src]
impl StructuralEq for SwapInfo
[src]
Auto Trait Implementations
impl Send for SwapInfo
impl Sync for SwapInfo
impl Unpin for SwapInfo
impl UnwindSafe for SwapInfo
impl RefUnwindSafe for SwapInfo
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,