pub struct LinuxInfo {
pub id: String,
pub pretty_name: String,
pub id_like: Vec<String>,
pub manager: Option<PackageManager>,
}Fields§
§id: String§pretty_name: String§id_like: Vec<String>§manager: Option<PackageManager>Implementations§
Source§impl LinuxInfo
impl LinuxInfo
pub fn detect() -> Result<Self, PlatformError>
pub fn from_os_release(text: &str) -> Result<Self, PlatformError>
Trait Implementations§
impl Eq for LinuxInfo
impl StructuralPartialEq for LinuxInfo
Auto Trait Implementations§
impl Freeze for LinuxInfo
impl RefUnwindSafe for LinuxInfo
impl Send for LinuxInfo
impl Sync for LinuxInfo
impl Unpin for LinuxInfo
impl UnsafeUnpin for LinuxInfo
impl UnwindSafe for LinuxInfo
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