#[repr(i32)]
pub enum ScHostFnErrorCode {
UnknownError,
UnexpectedHostFunctionAction,
InputArgsWrongLength,
InputArgsWrongType,
InputArgsInvalid,
}
Variants
UnknownError
UnexpectedHostFunctionAction
InputArgsWrongLength
InputArgsWrongType
InputArgsInvalid
Implementations
impl ScHostFnErrorCode
impl ScHostFnErrorCode
Trait Implementations
impl Clone for ScHostFnErrorCode
impl Clone for ScHostFnErrorCode
fn clone(&self) -> ScHostFnErrorCode
fn clone(&self) -> ScHostFnErrorCode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ScHostFnErrorCode
impl Debug for ScHostFnErrorCode
impl Display for ScHostFnErrorCode
impl Display for ScHostFnErrorCode
sourceimpl From<ScHostFnErrorCode> for Status
impl From<ScHostFnErrorCode> for Status
sourcefn from(code: ScHostFnErrorCode) -> Status
fn from(code: ScHostFnErrorCode) -> Status
Converts to this type from the input type.
impl Hash for ScHostFnErrorCode
impl Hash for ScHostFnErrorCode
impl Name for ScHostFnErrorCode
impl Name for ScHostFnErrorCode
impl Ord for ScHostFnErrorCode
impl Ord for ScHostFnErrorCode
fn cmp(&self, other: &ScHostFnErrorCode) -> Ordering
fn cmp(&self, other: &ScHostFnErrorCode) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialEq<ScHostFnErrorCode> for ScHostFnErrorCode
impl PartialEq<ScHostFnErrorCode> for ScHostFnErrorCode
fn eq(&self, other: &ScHostFnErrorCode) -> bool
fn eq(&self, other: &ScHostFnErrorCode) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl PartialOrd<ScHostFnErrorCode> for ScHostFnErrorCode
impl PartialOrd<ScHostFnErrorCode> for ScHostFnErrorCode
fn partial_cmp(&self, other: &ScHostFnErrorCode) -> Option<Ordering>
fn partial_cmp(&self, other: &ScHostFnErrorCode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl TryFrom<i32> for ScHostFnErrorCode
impl TryFrom<i32> for ScHostFnErrorCode
impl Variants<ScHostFnErrorCode> for ScHostFnErrorCode
impl Variants<ScHostFnErrorCode> for ScHostFnErrorCode
fn variants() -> Iter<'static, ScHostFnErrorCode>
impl Copy for ScHostFnErrorCode
impl Enum for ScHostFnErrorCode
impl Eq for ScHostFnErrorCode
impl ReadXdr for ScHostFnErrorCode
impl StructuralEq for ScHostFnErrorCode
impl StructuralPartialEq for ScHostFnErrorCode
impl WriteXdr for ScHostFnErrorCode
Auto Trait Implementations
impl RefUnwindSafe for ScHostFnErrorCode
impl Send for ScHostFnErrorCode
impl Sync for ScHostFnErrorCode
impl Unpin for ScHostFnErrorCode
impl UnwindSafe for ScHostFnErrorCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more