pub enum PlasmaError {
NotAvailable,
WriteLimit,
TooLarge,
BadKey,
NoCapability,
Internal,
Unknown(i32),
}Expand description
Errors returned by Plasma write operations.
Codes match the plasmaErr* constants in
internal/corona/hostapi_kv.go.
Variants§
NotAvailable
Plasma is not configured on this edge node.
WriteLimit
Per-invocation write count exceeded.
TooLarge
Value exceeds the host’s per-key size cap.
BadKey
Key failed validation.
NoCapability
Flare lacks the WritesPlasmaKV capability.
Internal
Internal host error - see edge logs.
Unknown(i32)
Unknown error code returned by the host.
Trait Implementations§
Source§impl Debug for PlasmaError
impl Debug for PlasmaError
Source§impl Display for PlasmaError
impl Display for PlasmaError
Source§impl Error for PlasmaError
impl Error for PlasmaError
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 PlasmaError
impl RefUnwindSafe for PlasmaError
impl Send for PlasmaError
impl Sync for PlasmaError
impl Unpin for PlasmaError
impl UnsafeUnpin for PlasmaError
impl UnwindSafe for PlasmaError
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