pub enum ServerCode {
Show 13 variants
DefaultServerError = -32_000,
VmValidationError = -32_001,
VmVerificationError = -32_002,
VmInvariantViolationError = -32_003,
VmDeserializationError = -32_004,
VmExecutionError = -32_005,
VmUnknownError = -32_006,
MempoolInvalidSeqNumber = -32_007,
MempoolIsFull = -32_008,
MempoolTooManyTransactions = -32_009,
MempoolInvalidUpdate = -32_010,
MempoolVmError = -32_011,
MempoolUnknownError = -32_012,
}
Expand description
Custom JSON RPC server error codes
Ranges from -32000 to -32099 - see https://www.jsonrpc.org/specification#error_object
for details
Variants§
DefaultServerError = -32_000
VmValidationError = -32_001
VmVerificationError = -32_002
VmInvariantViolationError = -32_003
VmDeserializationError = -32_004
VmExecutionError = -32_005
VmUnknownError = -32_006
MempoolInvalidSeqNumber = -32_007
MempoolIsFull = -32_008
MempoolTooManyTransactions = -32_009
MempoolInvalidUpdate = -32_010
MempoolVmError = -32_011
MempoolUnknownError = -32_012
Auto Trait Implementations§
impl Freeze for ServerCode
impl RefUnwindSafe for ServerCode
impl Send for ServerCode
impl Sync for ServerCode
impl Unpin for ServerCode
impl UnwindSafe for ServerCode
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more