pub struct Provider(/* private fields */);Expand description
A compiled-in cryptographic backend: an AEAD, KDF, and RNG bundle.
When exactly one backend is compiled in, everything “just works” transparently.
When a build contains multiple providers, bind one explicitly to
a crate::Key with crate::Key::from_bytes_with_provider or
crate::Key::generate_with_provider.
Implementations§
Trait Implementations§
impl Copy for Provider
impl Eq for Provider
impl StructuralPartialEq for Provider
Auto Trait Implementations§
impl Freeze for Provider
impl RefUnwindSafe for Provider
impl Send for Provider
impl Sync for Provider
impl Unpin for Provider
impl UnsafeUnpin for Provider
impl UnwindSafe for Provider
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