Trait ToNsName

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

Conversion to a namespaced local socket name.

Required Methods§

Source

fn to_ns_name<NT: NamespacedNameType<S>>(self) -> Result<Name<'s>>

Performs the conversion to a namespaced 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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Implementors§