pub struct TlsCipher {
pub id: u16,
pub name: Option<&'static str>,
}Expand description
The negotiated cipher suite.
Supported by rustls, Schannel, and OpenSSL builds with cipher metadata support (OpenSSL 1.1.1 or newer). A known numeric identifier may have no corresponding name in the backend’s lookup table.
Fields§
§id: u16IANA cipher suite identifier, for example 0x1301.
name: Option<&'static str>IANA name, for example TLS_AES_128_GCM_SHA256, when recognized.
Trait Implementations§
impl Copy for TlsCipher
impl Eq for TlsCipher
impl StructuralPartialEq for TlsCipher
Auto Trait Implementations§
impl Freeze for TlsCipher
impl RefUnwindSafe for TlsCipher
impl Send for TlsCipher
impl Sync for TlsCipher
impl Unpin for TlsCipher
impl UnsafeUnpin for TlsCipher
impl UnwindSafe for TlsCipher
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Compare self to
key and return true if they are equal.