pub enum SdkError {
Denied(DenyReason),
OverBudget {
cost: u64,
remaining: u64,
},
WrongType {
field: String,
expected: CrdtType,
found: CrdtType,
},
StrongFieldNeedsClaim(String),
UnknownCollection(String),
UnknownField {
collection: String,
field: String,
},
Crdt(String),
Auth(String),
}Variants§
Denied(DenyReason)
mID authorization refused the op.
OverBudget
The agent’s budget can’t cover the op; nothing was charged or written.
WrongType
The op doesn’t match the field’s CRDT type (e.g. incrementing a register).
StrongFieldNeedsClaim(String)
A strong-tier field must be written via claim_unique, not a plain put.
UnknownCollection(String)
No schema is registered for this collection.
UnknownField
The collection has no such field in its schema.
Crdt(String)
An underlying CRDT operation failed.
Auth(String)
An underlying authorization machinery error (not a plain deny).
Trait Implementations§
Source§impl Error for SdkError
impl Error for SdkError
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()
Auto Trait Implementations§
impl Freeze for SdkError
impl RefUnwindSafe for SdkError
impl Send for SdkError
impl Sync for SdkError
impl Unpin for SdkError
impl UnsafeUnpin for SdkError
impl UnwindSafe for SdkError
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