pub enum ExecutionError<AuthErr, ExecErr> {
UnauthorizedAccount(UnauthorizedAccountError<AuthErr>),
ExecutionEligibility(ExecErr),
}
Expand description
Errors that may occur when trying to execute a request
Variants§
The account is not allowed to act on requests
ExecutionEligibility(ExecErr)
Unapproved requests cannot be executed
Trait Implementations§
source§impl<AuthErr: Clone, ExecErr: Clone> Clone for ExecutionError<AuthErr, ExecErr>
impl<AuthErr: Clone, ExecErr: Clone> Clone for ExecutionError<AuthErr, ExecErr>
source§fn clone(&self) -> ExecutionError<AuthErr, ExecErr>
fn clone(&self) -> ExecutionError<AuthErr, ExecErr>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<AuthErr, ExecErr> Display for ExecutionError<AuthErr, ExecErr>where
UnauthorizedAccountError<AuthErr>: Display,
ExecErr: Display,
impl<AuthErr, ExecErr> Display for ExecutionError<AuthErr, ExecErr>where
UnauthorizedAccountError<AuthErr>: Display,
ExecErr: Display,
source§impl<AuthErr, ExecErr> Error for ExecutionError<AuthErr, ExecErr>where
UnauthorizedAccountError<AuthErr>: Error,
Self: Debug + Display,
impl<AuthErr, ExecErr> Error for ExecutionError<AuthErr, ExecErr>where
UnauthorizedAccountError<AuthErr>: Error,
Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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§fn from(source: UnauthorizedAccountError<AuthErr>) -> Self
fn from(source: UnauthorizedAccountError<AuthErr>) -> Self
Converts to this type from the input type.