Skip to main content

ErrorCode

Enum ErrorCode 

Source
pub enum ErrorCode {
Show 54 variants E1001 = 1_001, E1002 = 1_002, E1003 = 1_003, E1004 = 1_004, E1005 = 1_005, E1006 = 1_006, E2001 = 2_001, E2002 = 2_002, E2003 = 2_003, E2004 = 2_004, E2005 = 2_005, E2006 = 2_006, E3001 = 3_001, E3002 = 3_002, E3003 = 3_003, E3004 = 3_004, E3005 = 3_005, E3006 = 3_006, E4001 = 4_001, E4002 = 4_002, E4003 = 4_003, E4004 = 4_004, E4005 = 4_005, E4006 = 4_006, E5001 = 5_001, E5002 = 5_002, E5003 = 5_003, E5004 = 5_004, E5005 = 5_005, E5006 = 5_006, E6001 = 6_001, E6002 = 6_002, E6003 = 6_003, E6004 = 6_004, E6005 = 6_005, E6006 = 6_006, E7001 = 7_001, E7002 = 7_002, E7003 = 7_003, E7004 = 7_004, E7005 = 7_005, E7006 = 7_006, E8001 = 8_001, E8002 = 8_002, E8003 = 8_003, E8004 = 8_004, E8005 = 8_005, E8006 = 8_006, E9001 = 9_001, E9002 = 9_002, E9003 = 9_003, E9004 = 9_004, E9005 = 9_005, E9006 = 9_006,
}
Expand description

Error codes for categorizing different types of errors

Variants§

§

E1001 = 1_001

§

E1002 = 1_002

§

E1003 = 1_003

§

E1004 = 1_004

§

E1005 = 1_005

§

E1006 = 1_006

§

E2001 = 2_001

§

E2002 = 2_002

§

E2003 = 2_003

§

E2004 = 2_004

§

E2005 = 2_005

§

E2006 = 2_006

§

E3001 = 3_001

§

E3002 = 3_002

§

E3003 = 3_003

§

E3004 = 3_004

§

E3005 = 3_005

§

E3006 = 3_006

§

E4001 = 4_001

§

E4002 = 4_002

§

E4003 = 4_003

§

E4004 = 4_004

§

E4005 = 4_005

§

E4006 = 4_006

§

E5001 = 5_001

§

E5002 = 5_002

§

E5003 = 5_003

§

E5004 = 5_004

§

E5005 = 5_005

§

E5006 = 5_006

§

E6001 = 6_001

§

E6002 = 6_002

§

E6003 = 6_003

§

E6004 = 6_004

§

E6005 = 6_005

§

E6006 = 6_006

§

E7001 = 7_001

§

E7002 = 7_002

§

E7003 = 7_003

§

E7004 = 7_004

§

E7005 = 7_005

§

E7006 = 7_006

§

E8001 = 8_001

§

E8002 = 8_002

§

E8003 = 8_003

§

E8004 = 8_004

§

E8005 = 8_005

§

E8006 = 8_006

§

E9001 = 9_001

§

E9002 = 9_002

§

E9003 = 9_003

§

E9004 = 9_004

§

E9005 = 9_005

§

E9006 = 9_006

Trait Implementations§

Source§

impl Clone for ErrorCode

Source§

fn clone(&self) -> ErrorCode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ErrorCode

Source§

impl Debug for ErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ErrorCode

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for ErrorCode

Source§

impl From<ErrorCode> for JsValue

Source§

fn from(value: ErrorCode) -> Self

Converts to this type from the input type.
Source§

impl FromWasmAbi for ErrorCode

Source§

type Abi = u32

The Wasm ABI type that this converts from when coming back out from the ABI boundary.
Source§

unsafe fn from_abi(js: u32) -> Self

Recover a Self from Self::Abi. Read more
Source§

impl Hash for ErrorCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl IntoWasmAbi for ErrorCode

Source§

type Abi = u32

The Wasm ABI type that this converts into when crossing the ABI boundary.
Source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary.
Source§

impl OptionFromWasmAbi for ErrorCode

Source§

fn is_none(val: &Self::Abi) -> bool

Tests whether the argument is a “none” instance. If so it will be deserialized as None, and otherwise it will be passed to FromWasmAbi.
Source§

impl OptionIntoWasmAbi for ErrorCode

Source§

fn none() -> Self::Abi

Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option. Read more
Source§

impl PartialEq for ErrorCode

Source§

fn eq(&self, other: &ErrorCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ErrorCode

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for ErrorCode

Source§

impl TryFromJsValue for ErrorCode

Source§

fn try_from_js_value_ref(value: &JsValue) -> Option<Self>

Performs the conversion.
Source§

fn try_from_js_value(value: JsValue) -> Result<Self, JsValue>

Performs the conversion.
Source§

impl VectorFromWasmAbi for ErrorCode

Source§

type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi

Source§

unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ErrorCode]>

Source§

impl VectorIntoWasmAbi for ErrorCode

Source§

impl WasmDescribe for ErrorCode

Source§

impl WasmDescribeVector for ErrorCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ReturnWasmAbi for T
where T: IntoWasmAbi,

Source§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
Source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never return in the case of Err.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more