pub enum SystemType {
NixOS,
Guix,
Fhs,
}Expand description
System type detection.
Variants§
NixOS
NixOS - binaries in /nix/store, no standard FHS paths
Guix
Guix - similar to NixOS, binaries in /gnu/store
Fhs
Standard FHS Linux (Debian, Ubuntu, Fedora, Arch, etc.)
Implementations§
Source§impl SystemType
impl SystemType
pub fn is_nix_like(self) -> bool
Trait Implementations§
Source§impl Clone for SystemType
impl Clone for SystemType
Source§fn clone(&self) -> SystemType
fn clone(&self) -> SystemType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemType
impl Debug for SystemType
Source§impl PartialEq for SystemType
impl PartialEq for SystemType
impl Copy for SystemType
impl Eq for SystemType
impl StructuralPartialEq for SystemType
Auto Trait Implementations§
impl Freeze for SystemType
impl RefUnwindSafe for SystemType
impl Send for SystemType
impl Sync for SystemType
impl Unpin for SystemType
impl UnsafeUnpin for SystemType
impl UnwindSafe for SystemType
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