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