Struct SingleCertAndKey
pub struct SingleCertAndKey(/* private fields */);Available on crate feature
tls only.Expand description
Server certificate resolver which always resolves to the same certificate and key.
For use with ConfigBuilder::with_cert_resolver().
Trait Implementations§
§impl Debug for SingleCertAndKey
impl Debug for SingleCertAndKey
§impl From<Arc<CertifiedKey>> for SingleCertAndKey
impl From<Arc<CertifiedKey>> for SingleCertAndKey
§fn from(certified_key: Arc<CertifiedKey>) -> SingleCertAndKey
fn from(certified_key: Arc<CertifiedKey>) -> SingleCertAndKey
Converts to this type from the input type.
§impl From<CertifiedKey> for SingleCertAndKey
impl From<CertifiedKey> for SingleCertAndKey
§fn from(certified_key: CertifiedKey) -> SingleCertAndKey
fn from(certified_key: CertifiedKey) -> SingleCertAndKey
Converts to this type from the input type.
§impl ResolvesClientCert for SingleCertAndKey
impl ResolvesClientCert for SingleCertAndKey
§fn resolve(
&self,
_root_hint_subjects: &[&[u8]],
_sigschemes: &[SignatureScheme],
) -> Option<Arc<CertifiedKey>>
fn resolve( &self, _root_hint_subjects: &[&[u8]], _sigschemes: &[SignatureScheme], ) -> Option<Arc<CertifiedKey>>
Resolve a client certificate chain/private key to use as the client’s
identity. Read more
§fn only_raw_public_keys(&self) -> bool
fn only_raw_public_keys(&self) -> bool
Return true if the client only supports raw public keys. Read more
§impl ResolvesServerCert for SingleCertAndKey
impl ResolvesServerCert for SingleCertAndKey
§fn resolve(&self, _client_hello: ClientHello<'_>) -> Option<Arc<CertifiedKey>>
fn resolve(&self, _client_hello: ClientHello<'_>) -> Option<Arc<CertifiedKey>>
Choose a certificate chain and matching key given simplified
ClientHello information. Read more
§fn only_raw_public_keys(&self) -> bool
fn only_raw_public_keys(&self) -> bool
Return true when the server only supports raw public keys.
Auto Trait Implementations§
impl Freeze for SingleCertAndKey
impl !RefUnwindSafe for SingleCertAndKey
impl Send for SingleCertAndKey
impl Sync for SingleCertAndKey
impl Unpin for SingleCertAndKey
impl !UnwindSafe for SingleCertAndKey
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more