pub enum CommandCapabilityPolicyError {
CapabilityNotDeclared,
MissingIdempotencyKey,
RequiresLeader,
LeaseExpired,
StaleEpoch,
ReadOnly,
Rejected(String),
}Expand description
Stable reason a capability policy rejected an invocation.
Variants§
CapabilityNotDeclared
The invocation has no declared capability descriptor.
MissingIdempotencyKey
The capability requires an idempotency key.
RequiresLeader
The capability requires service leadership.
LeaseExpired
The applicable service lease has expired.
StaleEpoch
The request uses an obsolete fencing epoch.
ReadOnly
Current operational policy permits reads only.
Rejected(String)
Provider-specific policy rejected the invocation.
Trait Implementations§
Source§impl Clone for CommandCapabilityPolicyError
impl Clone for CommandCapabilityPolicyError
Source§fn clone(&self) -> CommandCapabilityPolicyError
fn clone(&self) -> CommandCapabilityPolicyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandCapabilityPolicyError
impl Debug for CommandCapabilityPolicyError
impl Eq for CommandCapabilityPolicyError
impl StructuralPartialEq for CommandCapabilityPolicyError
Auto Trait Implementations§
impl Freeze for CommandCapabilityPolicyError
impl RefUnwindSafe for CommandCapabilityPolicyError
impl Send for CommandCapabilityPolicyError
impl Sync for CommandCapabilityPolicyError
impl Unpin for CommandCapabilityPolicyError
impl UnsafeUnpin for CommandCapabilityPolicyError
impl UnwindSafe for CommandCapabilityPolicyError
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