pub enum Transport {
Uds,
Tcp,
}Expand description
Which transport the client uses to reach the daemon.
Mirrors kindling_server::Transport (each crate keeps its own copy so the
client need not depend on the server). Uds exists only on Unix; Tcp
exists everywhere and is the Windows default. Defaults to UDS on Unix and
TCP on Windows.
Variants§
Uds
Unix domain socket at ClientConfig::socket_path (Unix only; the
platform default there).
Tcp
Loopback TCP; the port is read from ClientConfig::port_path. The
platform default on non-Unix (Windows).
Trait Implementations§
impl Copy for Transport
impl Eq for Transport
impl StructuralPartialEq for Transport
Auto Trait Implementations§
impl Freeze for Transport
impl RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnsafeUnpin for Transport
impl UnwindSafe for Transport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.