Enum StartTlsPhase
pub enum StartTlsPhase {
Negotiating,
Handshaking,
Secured,
Failed,
}Expand description
Per-connection STARTTLS phase. Transitions never permit plaintext fallback.
Variants§
Negotiating
Protocol-specific plaintext negotiation may occur.
Handshaking
TLS handshake is in progress; no plaintext I/O is allowed.
Secured
TLS handshake succeeded; application I/O is allowed.
Failed
TLS handshake failed; the adapter must close the underlying connection.
Trait Implementations§
Source§impl Clone for StartTlsPhase
impl Clone for StartTlsPhase
Source§fn clone(&self) -> StartTlsPhase
fn clone(&self) -> StartTlsPhase
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 StartTlsPhase
Source§impl Debug for StartTlsPhase
impl Debug for StartTlsPhase
impl Eq for StartTlsPhase
Source§impl PartialEq for StartTlsPhase
impl PartialEq for StartTlsPhase
impl StructuralPartialEq for StartTlsPhase
Auto Trait Implementations§
impl Freeze for StartTlsPhase
impl RefUnwindSafe for StartTlsPhase
impl Send for StartTlsPhase
impl Sync for StartTlsPhase
impl Unpin for StartTlsPhase
impl UnsafeUnpin for StartTlsPhase
impl UnwindSafe for StartTlsPhase
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.