pub enum LimiteronError {
Show 19 variants
ConfigError(String),
StorageError(StorageError),
LimitError(String),
BanError(String),
CircuitBreakerError(String),
FallbackError(String),
AuditLogError(String),
AuthorizationError(String),
IoError(Error),
SerdeError(Error),
YamlError(Error),
RateLimitExceeded(String),
QuotaExceeded(String),
ConcurrencyLimitExceeded(String),
ValidationError(String),
LockError(String),
TimeError(String),
DependencyError(String),
Other(String),
}Expand description
FlowGuard 错误类型
Variants§
ConfigError(String)
配置错误
StorageError(StorageError)
存储错误
LimitError(String)
限流错误
BanError(String)
封禁错误
CircuitBreakerError(String)
熔断器错误
FallbackError(String)
降级错误
AuditLogError(String)
审计日志错误
AuthorizationError(String)
授权错误
IoError(Error)
IO错误
SerdeError(Error)
序列化错误
YamlError(Error)
YAML解析错误
RateLimitExceeded(String)
速率限制超出
QuotaExceeded(String)
配额超出
ConcurrencyLimitExceeded(String)
并发限制超出
ValidationError(String)
验证错误
LockError(String)
锁获取错误
TimeError(String)
时间错误
DependencyError(String)
依赖缺失错误
Other(String)
其他错误
Trait Implementations§
Source§impl Debug for LimiteronError
impl Debug for LimiteronError
Source§impl Display for LimiteronError
impl Display for LimiteronError
Source§impl Error for LimiteronError
impl Error for LimiteronError
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<Error> for LimiteronError
impl From<Error> for LimiteronError
Source§impl From<Error> for LimiteronError
impl From<Error> for LimiteronError
Source§impl From<Error> for LimiteronError
impl From<Error> for LimiteronError
Source§impl From<StorageError> for LimiteronError
impl From<StorageError> for LimiteronError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LimiteronError
impl !UnwindSafe for LimiteronError
impl Freeze for LimiteronError
impl Send for LimiteronError
impl Sync for LimiteronError
impl Unpin for LimiteronError
impl UnsafeUnpin for LimiteronError
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