pub struct StaticDntKeyProvider { /* private fields */ }Expand description
Deterministic in-memory provider for tests and development-only adapters.
Implementations§
Trait Implementations§
Source§impl Clone for StaticDntKeyProvider
impl Clone for StaticDntKeyProvider
Source§fn clone(&self) -> StaticDntKeyProvider
fn clone(&self) -> StaticDntKeyProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StaticDntKeyProvider
impl Debug for StaticDntKeyProvider
Source§impl Default for StaticDntKeyProvider
impl Default for StaticDntKeyProvider
Source§fn default() -> StaticDntKeyProvider
fn default() -> StaticDntKeyProvider
Returns the “default value” for a type. Read more
Source§impl DntKeyProvider for StaticDntKeyProvider
impl DntKeyProvider for StaticDntKeyProvider
Source§fn resolve_key(
&self,
key_id: &KeyId,
_context: &DntContext,
) -> Result<SecretKey, DntKeyError>
fn resolve_key( &self, key_id: &KeyId, _context: &DntContext, ) -> Result<SecretKey, DntKeyError>
Resolves one key or returns a controlled key error.
Auto Trait Implementations§
impl Freeze for StaticDntKeyProvider
impl RefUnwindSafe for StaticDntKeyProvider
impl Send for StaticDntKeyProvider
impl Sync for StaticDntKeyProvider
impl Unpin for StaticDntKeyProvider
impl UnsafeUnpin for StaticDntKeyProvider
impl UnwindSafe for StaticDntKeyProvider
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