Struct avalanche_proto::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: 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
sourceimpl Clone for ConnectionState
impl Clone for ConnectionState
sourcefn clone(&self) -> ConnectionState
fn clone(&self) -> ConnectionState
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for ConnectionState
impl Debug for ConnectionState
sourceimpl Default for ConnectionState
impl Default for ConnectionState
sourceimpl Message for ConnectionState
impl Message for ConnectionState
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
sourcefn encode_to_vec(&self) -> Vec<u8, Global>
fn encode_to_vec(&self) -> Vec<u8, Global>
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
sourcefn 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,
sourcefn 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,
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
self. Read moresourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
self. Read moresourceimpl PartialEq<ConnectionState> for ConnectionState
impl PartialEq<ConnectionState> for ConnectionState
sourcefn eq(&self, other: &ConnectionState) -> bool
fn eq(&self, other: &ConnectionState) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request