pub enum Transport {
Uds,
Tcp,
}Expand description
Which transport the daemon binds and serves the v1 HTTP API on.
Unix domain sockets are the default (and only authenticated) transport on
Unix; Windows has no UDS so it falls back to loopback TCP, publishing the
bound ephemeral port in a side-channel file (ServerConfig::port_path).
The variant set is platform-gated so each platform’s match stays
exhaustive: Uds exists only on Unix, Tcp everywhere. The Linux build
keeps both so the TCP path can be exercised in tests (and is what real
Windows uses by default).
Variants§
Uds
Unix domain socket at ServerConfig::socket_path (Unix only; the
platform default there).
Tcp
Loopback TCP on an ephemeral 127.0.0.1 port published to
ServerConfig::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.