pub enum GenericFilePath {}
Expand description
Consistent platform-specific mapping from filesystem paths to local socket names.
This name type, like GenericNamespaced
is designed to be always supported on all platforms,
whatever it takes. What follows below is a complete description of how that is implemented.
§Platform-specific behavior
§Windows
For paths that start with \\.\pipe\
, maps them to named pipe names without performing any
transformations. Attempting to map any other type of path, including a normalization-bypassing
path (\\?\
) currently returns an error.
§Unix
Resolves to filesystem paths to Unix domain sockets without performing any transformations.
Trait Implementations§
Source§impl Clone for GenericFilePath
impl Clone for GenericFilePath
Source§fn clone(&self) -> GenericFilePath
fn clone(&self) -> GenericFilePath
Returns a copy 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 GenericFilePath
impl Debug for GenericFilePath
Source§impl NameType for GenericFilePath
impl NameType for GenericFilePath
Source§fn is_supported() -> bool
fn is_supported() -> bool
Whether the name type is supported within the runtime circumstances of the program. Read more
Source§impl PartialEq for GenericFilePath
impl PartialEq for GenericFilePath
Source§impl PathNameType<CStr> for GenericFilePath
Available on Unix only.
impl PathNameType<CStr> for GenericFilePath
Available on Unix only.
Source§impl PathNameType<OsStr> for GenericFilePath
impl PathNameType<OsStr> for GenericFilePath
impl Copy for GenericFilePath
impl Eq for GenericFilePath
impl StructuralPartialEq for GenericFilePath
Auto Trait Implementations§
impl Freeze for GenericFilePath
impl RefUnwindSafe for GenericFilePath
impl Send for GenericFilePath
impl Sync for GenericFilePath
impl Unpin for GenericFilePath
impl UnwindSafe for GenericFilePath
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