pub enum DispatchError {
Guard(GuardError),
Secrets(SecretsError),
Audit(AuditError),
SecretValueInvalid {
env: String,
reason: &'static str,
},
Spawn {
path: PathBuf,
source: Error,
},
Wait {
path: PathBuf,
source: Error,
},
}Expand description
Top-level error from run. Each variant maps to a specific guard step
or post-spawn failure mode so callers can render targeted diagnostics.
Variants§
Guard(GuardError)
Secrets(SecretsError)
Audit(AuditError)
SecretValueInvalid
A resolved secret carries data that would crash Command::env. The
value itself is deliberately omitted from the message — only the
env-var name and a description of why it’s bad.
Spawn
Wait
Trait Implementations§
Source§impl Debug for DispatchError
impl Debug for DispatchError
Source§impl Display for DispatchError
impl Display for DispatchError
Source§impl Error for DispatchError
impl Error for DispatchError
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()
Source§impl From<AuditError> for DispatchError
impl From<AuditError> for DispatchError
Source§fn from(source: AuditError) -> Self
fn from(source: AuditError) -> Self
Converts to this type from the input type.
Source§impl From<GuardError> for DispatchError
impl From<GuardError> for DispatchError
Source§fn from(source: GuardError) -> Self
fn from(source: GuardError) -> Self
Converts to this type from the input type.
Source§impl From<SecretsError> for DispatchError
impl From<SecretsError> for DispatchError
Source§fn from(source: SecretsError) -> Self
fn from(source: SecretsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DispatchError
impl !RefUnwindSafe for DispatchError
impl Send for DispatchError
impl Sync for DispatchError
impl Unpin for DispatchError
impl UnsafeUnpin for DispatchError
impl !UnwindSafe for DispatchError
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