Enum EgressTransport
pub enum EgressTransport {
Http {
encrypted: bool,
},
WebSocket {
encrypted: bool,
},
Tcp,
Tls,
StartTls,
}Expand description
Protocol family and confidentiality mode requested by a plugin adapter.
The distinction the host cares about is which effective grant a transport needs and whether it can still become encrypted; the wire protocol itself is the adapter’s business.
Variants§
Http
HTTP; encrypted = true represents HTTPS.
WebSocket
WebSocket; encrypted = true represents WSS.
Tcp
Plain raw TCP.
Tls
TLS from the first byte on a raw connection.
StartTls
Plain protocol negotiation followed by a mandatory in-place TLS upgrade.
Trait Implementations§
Source§impl Clone for EgressTransport
impl Clone for EgressTransport
Source§fn clone(&self) -> EgressTransport
fn clone(&self) -> EgressTransport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EgressTransport
Source§impl Debug for EgressTransport
impl Debug for EgressTransport
Source§impl Display for EgressTransport
impl Display for EgressTransport
impl Eq for EgressTransport
Source§impl PartialEq for EgressTransport
impl PartialEq for EgressTransport
impl StructuralPartialEq for EgressTransport
Auto Trait Implementations§
impl Freeze for EgressTransport
impl RefUnwindSafe for EgressTransport
impl Send for EgressTransport
impl Sync for EgressTransport
impl Unpin for EgressTransport
impl UnsafeUnpin for EgressTransport
impl UnwindSafe for EgressTransport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.