#[repr(u8)]pub enum ExitCode {
Ok = 0,
NotFound = 1,
InvalidState = 2,
InvalidInput = 3,
InvalidOutput = 4,
AccessDenied = 5,
}
Variants§
Trait Implementations§
Source§impl From<ContractError> for ExitCode
impl From<ContractError> for ExitCode
Source§fn from(error: ContractError) -> Self
fn from(error: ContractError) -> Self
Converts to this type from the input type.
Source§impl Ord for ExitCode
impl Ord for ExitCode
Source§impl PartialOrd for ExitCode
impl PartialOrd for ExitCode
impl Copy for ExitCode
impl Eq for ExitCode
impl StructuralPartialEq for ExitCode
Auto Trait Implementations§
impl Freeze for ExitCode
impl RefUnwindSafe for ExitCode
impl Send for ExitCode
impl Sync for ExitCode
impl Unpin for ExitCode
impl UnwindSafe for ExitCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more