pub enum SocketType {
NamespacedOnly,
NamespacedOrFilesystem,
FilesystemOnly,
}Expand description
Defines the socket type to use when attempting to connect to a daemon.
Variants§
NamespacedOnly
Only use a namespaced socket with no fallback.
The connection will fail if a namespaced socket with the specified name doesn’t exist.
NamespacedOrFilesystem
Use a namespaced socket when possible, but allow a fallback to a filesystem socket.
The connection will fail if there are no namespaced or filesystem sockets with the specified name.
FilesystemOnly
Only use a filesystem socket with no fallback.
The connection will fail if a filesystem socket with the specified name doesn’t exist.
Trait Implementations§
Source§impl Clone for SocketType
impl Clone for SocketType
Source§fn clone(&self) -> SocketType
fn clone(&self) -> SocketType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SocketType
impl Debug for SocketType
Source§impl Default for SocketType
impl Default for SocketType
Source§fn default() -> SocketType
fn default() -> SocketType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SocketType
impl<'de> Deserialize<'de> for SocketType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for SocketType
impl Hash for SocketType
Source§impl PartialEq for SocketType
impl PartialEq for SocketType
Source§fn eq(&self, other: &SocketType) -> bool
fn eq(&self, other: &SocketType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SocketType
impl Serialize for SocketType
impl Copy for SocketType
impl Eq for SocketType
impl StructuralPartialEq for SocketType
Auto Trait Implementations§
impl Freeze for SocketType
impl RefUnwindSafe for SocketType
impl Send for SocketType
impl Sync for SocketType
impl Unpin for SocketType
impl UnsafeUnpin for SocketType
impl UnwindSafe for SocketType
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