#[non_exhaustive]pub enum Crypto {
Ring,
AwsLc,
}Expand description
The crypto provider a policy’s configurations run on.
A field of Policy, not a build switch: a feature makes a provider available, and only
a policy that asks for it uses it. Text form: ring, aws-lc.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ring
ring: rustls’s ring provider. The default.
AwsLc
aws-lc: rustls’s aws-lc-rs provider (feature aws-lc), which adds the ML-KEM groups
(X25519MLKEM768, SecP256r1MLKEM768, MLKEM768, MLKEM1024) and ML-DSA signatures. Without
the feature a policy asking for it is PeerError::Policy.
Implementations§
Trait Implementations§
impl Copy for Crypto
impl Eq for Crypto
impl StructuralPartialEq for Crypto
Auto Trait Implementations§
impl Freeze for Crypto
impl RefUnwindSafe for Crypto
impl Send for Crypto
impl Sync for Crypto
impl Unpin for Crypto
impl UnsafeUnpin for Crypto
impl UnwindSafe for Crypto
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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