pub enum Transport {
Tls,
Noise,
}Expand description
How a mapping’s listen-side TCP leg is secured. Replaces the old
secure: bool field: a config using secure/token in this shape fails
to load with a message pointing here, rather than silently keeping the
previous behavior (see README’s Security notes).
Variants§
Tls
A fresh self-signed cert generated at startup: confidentiality
against passive eavesdropping, no peer-identity verification (see
tls module docs). Interoperable with any TLS client (curl -k,
openssl s_client, …); token is optional here and, if set, is
exchanged as a plaintext frame right after the handshake.
Noise
The Noise protocol (see noise module docs), with token mandatory
and hashed into a pre-shared key mixed into the handshake itself.
Only interoperable with another erbridge instance.
Trait Implementations§
impl Copy for Transport
Source§impl<'de> Deserialize<'de> for Transport
impl<'de> Deserialize<'de> for Transport
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
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