#[repr(u8)]pub enum OpCode {
NotFound = 0,
Corruption = 1,
IoError = 2,
BadVersion = 3,
TooLarge = 4,
NoSpace = 5,
AbortTx = 6,
Again = 7,
Invalid = 8,
Exist = 9,
}Expand description
Error codes for storage operations.
Variants§
NotFound = 0
The key was not found.
Corruption = 1
Data corruption detected.
IoError = 2
I/O error occurred.
BadVersion = 3
Version mismatch.
TooLarge = 4
Value or key too large.
NoSpace = 5
Storage is full.
AbortTx = 6
Transaction aborted.
Again = 7
Try again later.
Invalid = 8
Invalid operation.
Exist = 9
already exists
Trait Implementations§
impl Copy for OpCode
impl Eq for OpCode
Source§impl Error for OpCode
impl Error for OpCode
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()
impl StructuralPartialEq for OpCode
Auto Trait Implementations§
impl Freeze for OpCode
impl RefUnwindSafe for OpCode
impl Send for OpCode
impl Sync for OpCode
impl Unpin for OpCode
impl UnsafeUnpin for OpCode
impl UnwindSafe for OpCode
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