Skip to main content

ToFsName

Trait ToFsName 

Source
pub trait ToFsName<'s, S: ToOwned + ?Sized> {
    // Required method
    fn to_fs_name<NT: PathNameType<S>>(self) -> Result<Name<'s>>;
}
Expand description

Conversion to a filesystem path-type local socket name.

Required Methods§

Source

fn to_fs_name<NT: PathNameType<S>>(self) -> Result<Name<'s>>

Performs the conversion to a filesystem path-type name.

Fails if the resulting name isn’t supported by the platform.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'s> ToFsName<'s, CStr> for &'s CStr

Source§

impl<'s> ToFsName<'s, CStr> for CString

Source§

impl<'s> ToFsName<'s, OsStr> for &'s OsStr

Source§

impl<'s> ToFsName<'s, OsStr> for &'s Path

Source§

impl<'s> ToFsName<'s, OsStr> for &'s str

Source§

impl<'s> ToFsName<'s, OsStr> for OsString

Source§

impl<'s> ToFsName<'s, OsStr> for PathBuf

Source§

impl<'s> ToFsName<'s, OsStr> for String

Implementors§