pub enum SecurityError {
InvalidToken,
TokenExpired(String),
ServiceNotAuthorized(String),
RequestIdMismatch(String),
MissingField(String),
TokenGenerationFailed(String),
RateLimitExceeded(String),
Internal(String),
}Expand description
Security error types
Variants§
InvalidToken
Invalid token
TokenExpired(String)
Token expired
ServiceNotAuthorized(String)
Service not authorized
RequestIdMismatch(String)
Request ID mismatch
MissingField(String)
Missing required field
TokenGenerationFailed(String)
Token generation failed
RateLimitExceeded(String)
Rate limit exceeded
Internal(String)
Internal error
Trait Implementations§
Source§impl Debug for SecurityError
impl Debug for SecurityError
Source§impl Display for SecurityError
impl Display for SecurityError
Source§impl Error for SecurityError
impl Error for SecurityError
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 SecurityError
impl RefUnwindSafe for SecurityError
impl Send for SecurityError
impl Sync for SecurityError
impl Unpin for SecurityError
impl UnsafeUnpin for SecurityError
impl UnwindSafe for SecurityError
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