#[repr(usize)]pub enum NotifyErrorKind {
Timeout = 0,
Unavailable = 1,
RateLimited = 2,
Rejected = 3,
Authentication = 4,
InvalidRequest = 5,
Other = 6,
}Expand description
稳定失败分类;原始响应与 URL 不进入错误链。
Variants§
Timeout = 0
投递超过期限,不能仅凭超时认定远端未受理。
通知服务暂不可用。
RateLimited = 2
通知服务拒绝了超过限额的请求。
Rejected = 3
通知服务明确拒绝受理。
Authentication = 4
通知服务认证失败。
InvalidRequest = 5
请求不符合通知服务接口要求。
Other = 6
其它稳定分类之外的投递失败。
Implementations§
Trait Implementations§
Source§impl Clone for NotifyErrorKind
impl Clone for NotifyErrorKind
impl Copy for NotifyErrorKind
Source§impl Debug for NotifyErrorKind
impl Debug for NotifyErrorKind
impl Eq for NotifyErrorKind
Source§impl From<NotifyErrorKind> for DeliveryOutcome
impl From<NotifyErrorKind> for DeliveryOutcome
Source§fn from(kind: NotifyErrorKind) -> Self
fn from(kind: NotifyErrorKind) -> Self
业务作用:把渠道错误映射到统一投递指标。
参数说明:
kind:是稳定渠道失败分类。
返回:不会携带原始错误的固定结果。
Source§impl PartialEq for NotifyErrorKind
impl PartialEq for NotifyErrorKind
impl StructuralPartialEq for NotifyErrorKind
Auto Trait Implementations§
impl Forget for NotifyErrorKind
impl Freeze for NotifyErrorKind
impl Move for NotifyErrorKind
impl RefUnwindSafe for NotifyErrorKind
impl Send for NotifyErrorKind
impl Sync for NotifyErrorKind
impl Unpin for NotifyErrorKind
impl UnsafeUnpin for NotifyErrorKind
impl UnwindSafe for NotifyErrorKind
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