pub enum SafeErrorMessage {
ConfigError(ConfigSafeError),
StorageError(StorageSafeError),
LimitError(LimitSafeError),
BanError(BanSafeError),
ValidationError(ValidationSafeError),
General(GeneralSafeError),
}Expand description
安全的错误消息类型
Variants§
ConfigError(ConfigSafeError)
配置错误
StorageError(StorageSafeError)
存储错误
LimitError(LimitSafeError)
限流错误
BanError(BanSafeError)
封禁错误
ValidationError(ValidationSafeError)
验证错误
General(GeneralSafeError)
通用错误
Trait Implementations§
Source§impl Clone for SafeErrorMessage
impl Clone for SafeErrorMessage
Source§impl Debug for SafeErrorMessage
impl Debug for SafeErrorMessage
Source§impl Display for SafeErrorMessage
impl Display for SafeErrorMessage
impl Eq for SafeErrorMessage
Source§impl PartialEq for SafeErrorMessage
impl PartialEq for SafeErrorMessage
impl StructuralPartialEq for SafeErrorMessage
Auto Trait Implementations§
impl Freeze for SafeErrorMessage
impl RefUnwindSafe for SafeErrorMessage
impl Send for SafeErrorMessage
impl Sync for SafeErrorMessage
impl Unpin for SafeErrorMessage
impl UnsafeUnpin for SafeErrorMessage
impl UnwindSafe for SafeErrorMessage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.