pub enum AliasResolverError {
NotFound {
path: String,
},
BadPath {
path: String,
reason: String,
},
Backend {
path: String,
message: String,
},
}Expand description
Failure modes for SecretResolver::resolve.
Concrete impls in devboy-storage translate router/storage
errors into one of these variants. The config loader only
needs to handle the variant set, not the underlying backend
errors.
Variants§
NotFound
No value at path.
BadPath
Path syntax doesn’t pass ADR-020 validation.
Backend
Backend (keychain, router, source plugin) errored.
Trait Implementations§
Source§impl Debug for AliasResolverError
impl Debug for AliasResolverError
Source§impl Display for AliasResolverError
impl Display for AliasResolverError
Source§impl Error for AliasResolverError
impl Error for AliasResolverError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for AliasResolverError
impl RefUnwindSafe for AliasResolverError
impl Send for AliasResolverError
impl Sync for AliasResolverError
impl Unpin for AliasResolverError
impl UnsafeUnpin for AliasResolverError
impl UnwindSafe for AliasResolverError
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