pub enum Transport {
Tcp(String),
Uds(PathBuf),
Turmoil06(String),
Turmoil07(String),
}Expand description
Transport used for communication between nodes.
Variants§
Tcp(String)
TCP transport (“tcp://host:port”).
Uds(PathBuf)
Available on Unix only.
Unix domain socket transport (“uds://path/to/socket”).
Used only on UNIX systems, ignored on other platforms.
Turmoil06(String)
Available on crate feature
turmoil06 only.Turmoil v0.6 transport (“turmoil06://host:port”).
A port can be omitted, in which case the default port is 57840 (0xE1F0).
Useful for testing purposes only.
Turmoil07(String)
Available on crate feature
turmoil07 only.Turmoil v0.7 transport (“turmoil07://host:port”).
A port can be omitted, in which case the default port is 57840 (0xE1F0).
Useful for testing purposes only.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Transport
impl<'de> Deserialize<'de> for Transport
Source§fn deserialize<D>(deserializer: D) -> Result<Transport, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Transport, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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> CallHasher for T
impl<T> CallHasher for T
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§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.