#[non_exhaustive]pub enum UnixAddrKind<'a> {
Path(Cow<'a, OsStr>),
Dir(Cow<'a, OsStr>),
Tmpdir(Cow<'a, OsStr>),
Abstract(Cow<'a, [u8]>),
Runtime,
}Expand description
A sub-type of unix: transport.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Path(Cow<'a, OsStr>)
Path of the unix domain socket.
Dir(Cow<'a, OsStr>)
Directory in which a socket file with a random file name starting with ‘dbus-’ should be created by a server.
Tmpdir(Cow<'a, OsStr>)
The same as “dir”, except that on platforms with abstract sockets, a server may attempt to create an abstract socket whose name starts with this directory instead of a path-based socket.
Abstract(Cow<'a, [u8]>)
Unique string in the abstract namespace, often syntactically resembling a path but unconnected to the filesystem namespace
Runtime
Listen on $XDG_RUNTIME_DIR/bus.
Trait Implementations§
Source§impl<'a> Clone for UnixAddrKind<'a>
impl<'a> Clone for UnixAddrKind<'a>
Source§fn clone(&self) -> UnixAddrKind<'a>
fn clone(&self) -> UnixAddrKind<'a>
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<'a> Debug for UnixAddrKind<'a>
impl<'a> Debug for UnixAddrKind<'a>
Source§impl<'a> PartialEq for UnixAddrKind<'a>
impl<'a> PartialEq for UnixAddrKind<'a>
impl<'a> Eq for UnixAddrKind<'a>
impl<'a> StructuralPartialEq for UnixAddrKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for UnixAddrKind<'a>
impl<'a> RefUnwindSafe for UnixAddrKind<'a>
impl<'a> Send for UnixAddrKind<'a>
impl<'a> Sync for UnixAddrKind<'a>
impl<'a> Unpin for UnixAddrKind<'a>
impl<'a> UnwindSafe for UnixAddrKind<'a>
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