#[non_exhaustive]pub enum DefinitionCatalogError {
InvalidArgument,
PermissionDenied,
NotFound,
FailedPrecondition,
DigestConflict,
PreconditionFailed,
OperationConflict,
}Expand description
业务作用:封闭 Definition Catalog 可由协议层安全公开的确定性拒绝类别。
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.
InvalidArgument
请求字段不满足 Catalog 的封闭格式或范围合同。
PermissionDenied
认证主体不是目标 definition 或 capability 的持有者。
NotFound
目标 definition 不存在。
FailedPrecondition
生命周期、集群确认或 capability 等业务前置条件尚未成立。
DigestConflict
相同 tenant/workflow/version 已绑定另一份不可变摘要。
PreconditionFailed
调用方预期的 definition seal 已不再是当前持久事实。
OperationConflict
相同操作身份已绑定另一组动作参数。
Implementations§
Source§impl DefinitionCatalogError
impl DefinitionCatalogError
Sourcepub fn from_error(error: &Error) -> Option<Self>
pub fn from_error(error: &Error) -> Option<Self>
业务作用:从持久事务上下文包裹的错误链提取 Catalog 确定性拒绝。
参数说明:error 是 Catalog 写入口返回的完整错误链。
返回:命中封闭拒绝时返回对应类别;其它失败返回 None。
Trait Implementations§
Source§impl Clone for DefinitionCatalogError
impl Clone for DefinitionCatalogError
impl Copy for DefinitionCatalogError
Source§impl Debug for DefinitionCatalogError
impl Debug for DefinitionCatalogError
Source§impl Display for DefinitionCatalogError
impl Display for DefinitionCatalogError
impl Eq for DefinitionCatalogError
Source§impl Error for DefinitionCatalogError
impl Error for DefinitionCatalogError
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()
Source§impl PartialEq for DefinitionCatalogError
impl PartialEq for DefinitionCatalogError
impl StructuralPartialEq for DefinitionCatalogError
Auto Trait Implementations§
impl Freeze for DefinitionCatalogError
impl RefUnwindSafe for DefinitionCatalogError
impl Send for DefinitionCatalogError
impl Sync for DefinitionCatalogError
impl Unpin for DefinitionCatalogError
impl UnsafeUnpin for DefinitionCatalogError
impl UnwindSafe for DefinitionCatalogError
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