pub enum ScHostContextErrorCode {
UnknownError,
NoContractRunning,
}
Variants§
Implementations§
§impl ScHostContextErrorCode
impl ScHostContextErrorCode
pub const VARIANTS: [ScHostContextErrorCode; 2] = [ScHostContextErrorCode::UnknownError, ScHostContextErrorCode::NoContractRunning]
pub const VARIANTS_STR: [&'static str; 2] = ["UnknownError", "NoContractRunning"]
pub const fn name(&self) -> &'static str
pub const fn variants() -> [ScHostContextErrorCode; 2]
Trait Implementations§
§impl Clone for ScHostContextErrorCode
impl Clone for ScHostContextErrorCode
§fn clone(&self) -> ScHostContextErrorCode
fn clone(&self) -> ScHostContextErrorCode
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 ScHostContextErrorCode
impl Debug for ScHostContextErrorCode
§impl Display for ScHostContextErrorCode
impl Display for ScHostContextErrorCode
source§impl From<ScHostContextErrorCode> for Status
impl From<ScHostContextErrorCode> for Status
source§fn from(code: ScHostContextErrorCode) -> Status
fn from(code: ScHostContextErrorCode) -> Status
Converts to this type from the input type.
§impl Hash for ScHostContextErrorCode
impl Hash for ScHostContextErrorCode
§impl Ord for ScHostContextErrorCode
impl Ord for ScHostContextErrorCode
§fn cmp(&self, other: &ScHostContextErrorCode) -> Ordering
fn cmp(&self, other: &ScHostContextErrorCode) -> 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<ScHostContextErrorCode> for ScHostContextErrorCode
impl PartialEq<ScHostContextErrorCode> for ScHostContextErrorCode
§fn eq(&self, other: &ScHostContextErrorCode) -> bool
fn eq(&self, other: &ScHostContextErrorCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<ScHostContextErrorCode> for ScHostContextErrorCode
impl PartialOrd<ScHostContextErrorCode> for ScHostContextErrorCode
§fn partial_cmp(&self, other: &ScHostContextErrorCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ScHostContextErrorCode) -> 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