pub enum PathSource {
Local,
LocalDesktop,
LocalFlatpak,
LocalNix,
Nix,
System,
SystemLocal,
SystemFlatpak,
SystemSnap,
Other(String),
}Variants§
Local
LocalDesktop
LocalFlatpak
LocalNix
Nix
System
SystemLocal
SystemFlatpak
SystemSnap
Other(String)
Implementations§
Source§impl PathSource
impl PathSource
Sourcepub fn guess_from(path: &Path) -> PathSource
pub fn guess_from(path: &Path) -> PathSource
Attempts to determine the PathSource for a given Path. Note that this is a best-effort guesting function, and its results should be treated as such (e.g.: non-canonical).
Trait Implementations§
Source§impl Clone for PathSource
impl Clone for PathSource
Source§fn clone(&self) -> PathSource
fn clone(&self) -> PathSource
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 PathSource
impl Debug for PathSource
Source§impl Hash for PathSource
impl Hash for PathSource
Source§impl PartialEq for PathSource
impl PartialEq for PathSource
impl Eq for PathSource
impl StructuralPartialEq for PathSource
Auto Trait Implementations§
impl Freeze for PathSource
impl RefUnwindSafe for PathSource
impl Send for PathSource
impl Sync for PathSource
impl Unpin for PathSource
impl UnwindSafe for PathSource
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