#[non_exhaustive]pub enum ErrorCode {
Show 16 variants
InvalidConfig,
Unsupported,
Unauthenticated,
PermissionDenied,
PermissionFiltered,
Unavailable,
RateLimited,
DeadlineExceeded,
IncompleteSnapshot,
InvalidSnapshot,
CapacityExceeded,
OutcomeUnknown,
NoInstances,
OwnerClosed,
NotReady,
Conflict,
}Expand description
可用于稳定状态与重试裁决的错误类别,不携带远端响应正文。
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidConfig
配置无效,在外部操作之前拒绝。
Unsupported
后端或当前配置不支持所请求的能力。
Unauthenticated
身份认证失败,旧身份的证据不能继续授权发送。
PermissionDenied
目标作用域的访问被拒绝。
PermissionFiltered
服务端按权限过滤了结果,不能视为完整服务快照。
后端暂不可用,是否复用旧证据由时效策略裁决。
RateLimited
后端拒绝当前请求速率,需要按预算退避。
DeadlineExceeded
操作的绝对截止期限已经耗尽。
IncompleteSnapshot
响应未能完整同步,不能据此发布新候选;普通读取可以使用尚在宽限内的完整旧证据。
InvalidSnapshot
已确认完整候选或对象身份非法,必须立即撤销旧证据,不能按同步失败宽限。
CapacityExceeded
本地有限资源或后端响应规模超过容量限制。
OutcomeUnknown
外部写入是否生效无法确认,禁止按确定成功继续推进。
NoInstances
当前没有可承载请求的服务实例。
OwnerClosed
资源 owner 已关闭,不再接纳工作。
NotReady
连接或发布资格尚未满足当前操作的前置条件。
Conflict
目标已被其他所有者占用或状态与预期不一致。
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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