Struct rustls::server::handy::AlwaysResolvesChain
source · pub(super) struct AlwaysResolvesChain(Arc<CertifiedKey>);
Expand description
Something which always resolves to the same cert chain.
Tuple Fields§
§0: Arc<CertifiedKey>
Implementations§
source§impl AlwaysResolvesChain
impl AlwaysResolvesChain
sourcepub(super) fn new(
chain: Vec<Certificate>,
priv_key: &PrivateKey,
) -> Result<Self, Error>
pub(super) fn new( chain: Vec<Certificate>, priv_key: &PrivateKey, ) -> Result<Self, Error>
Creates an AlwaysResolvesChain
, auto-detecting the underlying private
key type and encoding.
sourcepub(super) fn new_with_extras(
chain: Vec<Certificate>,
priv_key: &PrivateKey,
ocsp: Vec<u8>,
scts: Vec<u8>,
) -> Result<Self, Error>
pub(super) fn new_with_extras( chain: Vec<Certificate>, priv_key: &PrivateKey, ocsp: Vec<u8>, scts: Vec<u8>, ) -> Result<Self, Error>
Creates an AlwaysResolvesChain
, auto-detecting the underlying private
key type and encoding.
If non-empty, the given OCSP response and SCTs are attached.
Trait Implementations§
source§impl ResolvesServerCert for AlwaysResolvesChain
impl ResolvesServerCert for AlwaysResolvesChain
source§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
Auto Trait Implementations§
impl Freeze for AlwaysResolvesChain
impl !RefUnwindSafe for AlwaysResolvesChain
impl Send for AlwaysResolvesChain
impl Sync for AlwaysResolvesChain
impl Unpin for AlwaysResolvesChain
impl !UnwindSafe for AlwaysResolvesChain
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