pub enum ScHostObjErrorCode {
UnknownError,
UnknownReference,
UnexpectedType,
ObjectCountExceedsU32Max,
ObjectNotExist,
VecIndexOutOfBound,
ContractHashWrongLength,
}
Variants§
UnknownError
UnknownReference
UnexpectedType
ObjectCountExceedsU32Max
ObjectNotExist
VecIndexOutOfBound
ContractHashWrongLength
Implementations§
§impl ScHostObjErrorCode
impl ScHostObjErrorCode
pub const VARIANTS: [ScHostObjErrorCode; 7] = [ScHostObjErrorCode::UnknownError, ScHostObjErrorCode::UnknownReference, ScHostObjErrorCode::UnexpectedType, ScHostObjErrorCode::ObjectCountExceedsU32Max, ScHostObjErrorCode::ObjectNotExist, ScHostObjErrorCode::VecIndexOutOfBound, ScHostObjErrorCode::ContractHashWrongLength]
pub const VARIANTS_STR: [&'static str; 7] = ["UnknownError", "UnknownReference", "UnexpectedType", "ObjectCountExceedsU32Max", "ObjectNotExist", "VecIndexOutOfBound", "ContractHashWrongLength"]
pub const fn name(&self) -> &'static str
pub const fn variants() -> [ScHostObjErrorCode; 7]
Trait Implementations§
§impl Clone for ScHostObjErrorCode
impl Clone for ScHostObjErrorCode
§fn clone(&self) -> ScHostObjErrorCode
fn clone(&self) -> ScHostObjErrorCode
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 more§impl Debug for ScHostObjErrorCode
impl Debug for ScHostObjErrorCode
§impl Display for ScHostObjErrorCode
impl Display for ScHostObjErrorCode
source§impl From<ScHostObjErrorCode> for Status
impl From<ScHostObjErrorCode> for Status
source§fn from(code: ScHostObjErrorCode) -> Status
fn from(code: ScHostObjErrorCode) -> Status
Converts to this type from the input type.
§impl Hash for ScHostObjErrorCode
impl Hash for ScHostObjErrorCode
§impl Ord for ScHostObjErrorCode
impl Ord for ScHostObjErrorCode
§fn cmp(&self, other: &ScHostObjErrorCode) -> Ordering
fn cmp(&self, other: &ScHostObjErrorCode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq<ScHostObjErrorCode> for ScHostObjErrorCode
impl PartialEq<ScHostObjErrorCode> for ScHostObjErrorCode
§fn eq(&self, other: &ScHostObjErrorCode) -> bool
fn eq(&self, other: &ScHostObjErrorCode) -> bool
§impl PartialOrd<ScHostObjErrorCode> for ScHostObjErrorCode
impl PartialOrd<ScHostObjErrorCode> for ScHostObjErrorCode
§fn partial_cmp(&self, other: &ScHostObjErrorCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ScHostObjErrorCode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more