pub struct ConnectionState {
pub version: u32,
pub handshake_complete: bool,
pub did_resume: bool,
pub cipher_suite: u32,
pub negotiated_protocol: String,
pub server_name: String,
pub peer_certificates: Option<Certificates>,
pub verified_chains: Vec<Certificates>,
pub signed_certificate_timestamps: Vec<Bytes>,
pub ocsp_response: Bytes,
}Expand description
ConnectionState is tls.ConnectionState see: https://pkg.go.dev/crypto/tls#ConnectionState
Fields§
§version: u32version is the TLS version used by the connection (e.g. VersionTLS12)
handshake_complete: boolhandshake_complete is true if the handshake has concluded
did_resume: booldid_resume is true if this connection was successfully resumed from a previous session with a session ticket or similar mechanism
cipher_suite: u32cipher_suite is the cipher suite negotiated for the connection
negotiated_protocol: Stringnegotiated_protocol is the application protocol negotiated with ALPN
server_name: Stringserver_name is the value of the Server Name Indication extension sent by the client
peer_certificates: Option<Certificates>peer_certificates are the parsed certificates sent by the peer, in the order in which they were sent
verified_chains: Vec<Certificates>verified_chains is a list of one or more chains where the first element is PeerCertificates[0] and the last element is from Config.RootCAs (on the client side) or Config.ClientCAs (on the server side).
signed_certificate_timestamps: Vec<Bytes>signed_certificate_timestamps is a list of SCTs provided by the peer through the TLS handshake for the leaf certificate, if any
ocsp_response: Bytesocsp_response is a stapled Online Certificate Status Protocol (OCSP) response provided by the peer for the leaf certificate, if any.
Trait Implementations§
Source§impl Clone for ConnectionState
impl Clone for ConnectionState
Source§fn clone(&self) -> ConnectionState
fn clone(&self) -> ConnectionState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConnectionState
impl Debug for ConnectionState
Source§impl Default for ConnectionState
impl Default for ConnectionState
Source§impl Message for ConnectionState
impl Message for ConnectionState
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.Source§impl PartialEq for ConnectionState
impl PartialEq for ConnectionState
impl StructuralPartialEq for ConnectionState
Auto Trait Implementations§
impl !Freeze for ConnectionState
impl RefUnwindSafe for ConnectionState
impl Send for ConnectionState
impl Sync for ConnectionState
impl Unpin for ConnectionState
impl UnwindSafe for ConnectionState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request