pub enum RemovalError<AuthErr, RemErr> {
UnauthorizedAccount(UnauthorizedAccountError<AuthErr>),
RemovalNotAllowed(RemErr),
}
Expand description
Errors that may occur when trying to remove a request
Variants§
The account is not allowed to act on requests
RemovalNotAllowed(RemErr)
This request is not (yet?) allowed to be removed
Trait Implementations§
source§impl<AuthErr: Clone, RemErr: Clone> Clone for RemovalError<AuthErr, RemErr>
impl<AuthErr: Clone, RemErr: Clone> Clone for RemovalError<AuthErr, RemErr>
source§fn clone(&self) -> RemovalError<AuthErr, RemErr>
fn clone(&self) -> RemovalError<AuthErr, RemErr>
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, RemErr> Display for RemovalError<AuthErr, RemErr>where
UnauthorizedAccountError<AuthErr>: Display,
RemErr: Display,
impl<AuthErr, RemErr> Display for RemovalError<AuthErr, RemErr>where
UnauthorizedAccountError<AuthErr>: Display,
RemErr: Display,
source§impl<AuthErr, RemErr> Error for RemovalError<AuthErr, RemErr>where
UnauthorizedAccountError<AuthErr>: Error,
Self: Debug + Display,
impl<AuthErr, RemErr> Error for RemovalError<AuthErr, RemErr>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.