pub struct SingleCredential(/* private fields */);
Expand description
Server certificate resolver which always resolves to the same identity and key.
For use with ConfigBuilder::with_server_credential_resolver()
or
ConfigBuilder::with_client_credential_resolver()
.
Trait Implementations§
Source§impl ClientCredentialResolver for SingleCredential
impl ClientCredentialResolver for SingleCredential
Source§fn resolve(&self, request: &CredentialRequest<'_>) -> Option<SelectedCredential>
fn resolve(&self, request: &CredentialRequest<'_>) -> Option<SelectedCredential>
Resolve a client certificate chain/private key to use as the client’s identity. Read more
Source§fn supported_certificate_types(&self) -> &'static [CertificateType]
fn supported_certificate_types(&self) -> &'static [CertificateType]
Returns which
CertificateType
s this resolver supports. Read moreSource§impl Debug for SingleCredential
impl Debug for SingleCredential
Source§impl From<Credentials> for SingleCredential
impl From<Credentials> for SingleCredential
Source§fn from(credentials: Credentials) -> Self
fn from(credentials: Credentials) -> Self
Converts to this type from the input type.
Source§impl ServerCredentialResolver for SingleCredential
impl ServerCredentialResolver for SingleCredential
Source§fn resolve(
&self,
client_hello: &ClientHello<'_>,
) -> Result<SelectedCredential, Error>
fn resolve( &self, client_hello: &ClientHello<'_>, ) -> Result<SelectedCredential, Error>
Choose a certificate chain and matching key given simplified ClientHello information. Read more
Source§fn supported_certificate_types(&self) -> &'static [CertificateType]
fn supported_certificate_types(&self) -> &'static [CertificateType]
Returns which
CertificateType
s this resolver supports. Read moreAuto Trait Implementations§
impl Freeze for SingleCredential
impl !RefUnwindSafe for SingleCredential
impl Send for SingleCredential
impl Sync for SingleCredential
impl Unpin for SingleCredential
impl !UnwindSafe for SingleCredential
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