pub enum AuthorizationError {
AccessDenied {
operation: String,
resource: String,
},
InvalidCapabilities {
reason: String,
},
InvalidToken {
reason: String,
},
SignatureError,
SystemError(AuraError),
}Expand description
Errors that can occur during authorization operations
Variants§
AccessDenied
The requested operation is not permitted
InvalidCapabilities
The capability set is invalid or malformed
InvalidToken
The access token is invalid, expired, or revoked
SignatureError
Cryptographic verification failed
SystemError(AuraError)
System error during authorization
Trait Implementations§
Source§impl Debug for AuthorizationError
impl Debug for AuthorizationError
Source§impl Display for AuthorizationError
impl Display for AuthorizationError
Source§impl Error for AuthorizationError
impl Error for AuthorizationError
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<AuraError> for AuthorizationError
impl From<AuraError> for AuthorizationError
Source§fn from(source: AuraError) -> AuthorizationError
fn from(source: AuraError) -> AuthorizationError
Converts to this type from the input type.
Source§impl From<AuthorizationError> for AuraError
impl From<AuthorizationError> for AuraError
Source§fn from(err: AuthorizationError) -> AuraError
fn from(err: AuthorizationError) -> AuraError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthorizationError
impl RefUnwindSafe for AuthorizationError
impl Send for AuthorizationError
impl Sync for AuthorizationError
impl Unpin for AuthorizationError
impl UnsafeUnpin for AuthorizationError
impl UnwindSafe for AuthorizationError
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