#[repr(u8)]pub enum ContractError {
NotFound = 1,
InvalidState = 2,
InvalidInput = 3,
InvalidOutput = 4,
AccessDenied = 5,
}
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ContractError
impl Clone for ContractError
Source§fn clone(&self) -> ContractError
fn clone(&self) -> ContractError
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 moreSource§impl Debug for ContractError
impl Debug for ContractError
Source§impl Display for ContractError
impl Display for ContractError
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 Hash for ContractError
impl Hash for ContractError
Source§impl Ord for ContractError
impl Ord for ContractError
Source§fn cmp(&self, other: &ContractError) -> Ordering
fn cmp(&self, other: &ContractError) -> 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
Source§impl PartialEq for ContractError
impl PartialEq for ContractError
Source§impl PartialOrd for ContractError
impl PartialOrd for ContractError
impl Copy for ContractError
impl Eq for ContractError
impl StructuralPartialEq for ContractError
Auto Trait Implementations§
impl Freeze for ContractError
impl RefUnwindSafe for ContractError
impl Send for ContractError
impl Sync for ContractError
impl Unpin for ContractError
impl UnwindSafe for ContractError
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