interprocess::local_socket

Trait PathNameType

Source
pub trait PathNameType<S: ToOwned + ?Sized>: NameType {
    // Required method
    fn map(path: Cow<'_, S>) -> Result<Name<'_>>;
}
Expand description

Required Methods§

Source

fn map(path: Cow<'_, S>) -> Result<Name<'_>>

Maps the given path to a local socket name, failing if the resulting name is unsupported by the underlying OS.

The idiomatic way to use this is ToFsName::to_fs_name().

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl PathNameType<CStr> for FilesystemUdSocket

Available on Unix only.
Source§

impl PathNameType<CStr> for GenericFilePath

Available on Unix only.
Source§

impl PathNameType<OsStr> for FilesystemUdSocket

Available on Unix only.
Source§

impl PathNameType<OsStr> for GenericFilePath