Struct libkelp::lib::util::os::Os[][src]

pub struct Os {
    pub name: String,
    pub file: String,
    pub priority: i16,
    pub prettyname: String,
    pub submatches: Vec<String>,
}

Fields

name: String

Name of the os

file: String

File used to reconise it

priority: i16

“Priority” of the OS For example Arch has pritority 1 and file /etc/arch-release And manjaro has priority 2 and files /etc/arch-release AND /etc/manjaro-release If both /etc/manjaro-release and /etc/arch-release exists, the higher priority will be used In this case it’s 2 (manjaro)

prettyname: String

The “pretty” name of the OS: for example “Arch GNU/Linux”

submatches: Vec<String>

Submatches (parent distros)

Trait Implementations

impl Clone for Os[src]

impl Debug for Os[src]

impl<'de> Deserialize<'de> for Os[src]

impl Serialize for Os[src]

Auto Trait Implementations

impl RefUnwindSafe for Os

impl Send for Os

impl Sync for Os

impl Unpin for Os

impl UnwindSafe for Os

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.