#[non_exhaustive]pub enum UnixSocket {
File(PathBuf),
Abstract(OsString),
Dir(PathBuf),
TmpDir(PathBuf),
}
Expand description
A Unix domain socket path in a D-Bus address.
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.
File(PathBuf)
A path to a unix domain socket on the filesystem.
Abstract(OsString)
A abstract unix domain socket name.
Dir(PathBuf)
A listenable address using the specified path, in which a socket file with a random file name starting with ‘dbus-’ will be created by the server. See UNIX domain socket address reference documentation.
This address is mostly relevant to server (typically bus broker) implementations.
TmpDir(PathBuf)
The same as UnixDir, except that on platforms with abstract sockets, the server may attempt to create an abstract socket whose name starts with this directory instead of a path-based socket.
This address is mostly relevant to server (typically bus broker) implementations.
Trait Implementations§
Source§impl Clone for UnixSocket
impl Clone for UnixSocket
Source§fn clone(&self) -> UnixSocket
fn clone(&self) -> UnixSocket
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 UnixSocket
impl Debug for UnixSocket
Source§impl Display for UnixSocket
impl Display for UnixSocket
Source§impl PartialEq for UnixSocket
impl PartialEq for UnixSocket
impl Eq for UnixSocket
impl StructuralPartialEq for UnixSocket
Auto Trait Implementations§
impl Freeze for UnixSocket
impl RefUnwindSafe for UnixSocket
impl Send for UnixSocket
impl Sync for UnixSocket
impl Unpin for UnixSocket
impl UnwindSafe for UnixSocket
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