pub struct NegotiationResult {
pub client_cert_type: CertificateType,
pub server_cert_type: CertificateType,
}
Expand description
Certificate type negotiation result
Fields§
§client_cert_type: CertificateType
Negotiated client certificate type
server_cert_type: CertificateType
Negotiated server certificate type
Implementations§
Source§impl NegotiationResult
impl NegotiationResult
Sourcepub fn new(
client_cert_type: CertificateType,
server_cert_type: CertificateType,
) -> Self
pub fn new( client_cert_type: CertificateType, server_cert_type: CertificateType, ) -> Self
Create a new negotiation result
Sourcepub fn is_raw_public_key_only(&self) -> bool
pub fn is_raw_public_key_only(&self) -> bool
Check if Raw Public Keys are used for both client and server
Sourcepub fn is_x509_only(&self) -> bool
pub fn is_x509_only(&self) -> bool
Check if X.509 certificates are used for both client and server
Trait Implementations§
Source§impl Clone for NegotiationResult
impl Clone for NegotiationResult
Source§fn clone(&self) -> NegotiationResult
fn clone(&self) -> NegotiationResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NegotiationResult
impl Debug for NegotiationResult
Source§impl<'de> Deserialize<'de> for NegotiationResult
impl<'de> Deserialize<'de> for NegotiationResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NegotiationResult
impl PartialEq for NegotiationResult
Source§impl Serialize for NegotiationResult
impl Serialize for NegotiationResult
impl Eq for NegotiationResult
impl StructuralPartialEq for NegotiationResult
Auto Trait Implementations§
impl Freeze for NegotiationResult
impl RefUnwindSafe for NegotiationResult
impl Send for NegotiationResult
impl Sync for NegotiationResult
impl Unpin for NegotiationResult
impl UnwindSafe for NegotiationResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.