pub struct FromCrypto<T>(pub T)
where
T: Borrow<CryptoProvider>;
Expand description
A wrapper for anything that can borrow rustls::crypto::CryptoProvider
that implements
rustls::crypto::KeyProvider
.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T> Debug for FromCrypto<T>where
T: Borrow<CryptoProvider>,
impl<T> Debug for FromCrypto<T>where
T: Borrow<CryptoProvider>,
Source§impl<T> KeyProvider for FromCrypto<T>
impl<T> KeyProvider for FromCrypto<T>
Source§fn load_private_key(
&self,
key_der: PrivateKeyDer<'static>,
) -> Result<Arc<dyn SigningKey>, Error>
fn load_private_key( &self, key_der: PrivateKeyDer<'static>, ) -> Result<Arc<dyn SigningKey>, Error>
Decode and validate a private signing key from
key_der
. Read moreAuto Trait Implementations§
impl<T> Freeze for FromCrypto<T>where
T: Freeze,
impl<T> RefUnwindSafe for FromCrypto<T>where
T: RefUnwindSafe,
impl<T> Send for FromCrypto<T>where
T: Send,
impl<T> Sync for FromCrypto<T>where
T: Sync,
impl<T> Unpin for FromCrypto<T>where
T: Unpin,
impl<T> UnwindSafe for FromCrypto<T>where
T: UnwindSafe,
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