#[repr(u32)]pub enum KernelErrorCode {
InvalidState = 1_000,
OpIdMismatch = 1_001,
Slippage = 1_002,
MinWithdrawal = 1_003,
QueueFull = 1_004,
NoPendingWithdrawals = 1_005,
Cooldown = 1_006,
Transition = 1_007,
NotImplemented = 1_008,
Restricted = 1_009,
InvalidConfig = 1_010,
ZeroAmount = 1_011,
}Variants§
InvalidState = 1_000
OpIdMismatch = 1_001
Slippage = 1_002
MinWithdrawal = 1_003
QueueFull = 1_004
NoPendingWithdrawals = 1_005
Cooldown = 1_006
Transition = 1_007
NotImplemented = 1_008
Restricted = 1_009
InvalidConfig = 1_010
ZeroAmount = 1_011
Implementations§
Trait Implementations§
Source§impl Clone for KernelErrorCode
impl Clone for KernelErrorCode
Source§fn clone(&self) -> KernelErrorCode
fn clone(&self) -> KernelErrorCode
Returns a copy of the value. Read more
1.0.0 · 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 KernelErrorCode
impl Debug for KernelErrorCode
Source§impl From<KernelErrorCode> for KernelDiagnosticCode
impl From<KernelErrorCode> for KernelDiagnosticCode
Source§fn from(code: KernelErrorCode) -> Self
fn from(code: KernelErrorCode) -> Self
Converts to this type from the input type.
Source§impl HasKernelDiagnosticCode for KernelErrorCode
impl HasKernelDiagnosticCode for KernelErrorCode
fn diagnostic_code(&self) -> KernelDiagnosticCode
Source§impl PartialEq for KernelErrorCode
impl PartialEq for KernelErrorCode
impl Copy for KernelErrorCode
impl Eq for KernelErrorCode
impl StructuralPartialEq for KernelErrorCode
Auto Trait Implementations§
impl Freeze for KernelErrorCode
impl RefUnwindSafe for KernelErrorCode
impl Send for KernelErrorCode
impl Sync for KernelErrorCode
impl Unpin for KernelErrorCode
impl UnwindSafe for KernelErrorCode
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