Struct avalanche_types::proto::pb::http::ConnectionState
source · 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: u32
version is the TLS version used by the connection (e.g. VersionTLS12)
handshake_complete: bool
handshake_complete is true if the handshake has concluded
did_resume: bool
did_resume is true if this connection was successfully resumed from a previous session with a session ticket or similar mechanism
cipher_suite: u32
cipher_suite is the cipher suite negotiated for the connection
negotiated_protocol: String
negotiated_protocol is the application protocol negotiated with ALPN
server_name: String
server_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: Bytes
ocsp_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>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global> ⓘwhere Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global> ⓘwhere Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self
.source§impl PartialEq<ConnectionState> for ConnectionState
impl PartialEq<ConnectionState> for ConnectionState
source§fn eq(&self, other: &ConnectionState) -> bool
fn eq(&self, other: &ConnectionState) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConnectionState
Auto Trait Implementations§
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> 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