pub struct TestResolver { /* private fields */ }Expand description
In-process resolver used in tests. Backed by a fixed map keyed on the
secret’s ref field. Returns SecretsError::Resolution for any spec
whose reference isn’t in the map.
Implementations§
Trait Implementations§
Source§impl Clone for TestResolver
impl Clone for TestResolver
Source§fn clone(&self) -> TestResolver
fn clone(&self) -> TestResolver
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 TestResolver
impl Debug for TestResolver
Source§impl Default for TestResolver
impl Default for TestResolver
Source§fn default() -> TestResolver
fn default() -> TestResolver
Returns the “default value” for a type. Read more
Source§impl SecretsResolver for TestResolver
impl SecretsResolver for TestResolver
Source§fn resolve_all(
&self,
specs: &[SecretSpec],
) -> Result<Vec<ResolvedSecret>, SecretsError>
fn resolve_all( &self, specs: &[SecretSpec], ) -> Result<Vec<ResolvedSecret>, SecretsError>
Resolve every secret in
specs. On any failure, return immediately
— the dispatcher discards everything and aborts before spawning.Auto Trait Implementations§
impl Freeze for TestResolver
impl RefUnwindSafe for TestResolver
impl Send for TestResolver
impl Sync for TestResolver
impl Unpin for TestResolver
impl UnsafeUnpin for TestResolver
impl UnwindSafe for TestResolver
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