pub enum RuntimeContractError {
RequiresFailure(String),
EnsuresFailure(String),
CheckFailure(String),
}
Expand description
The error type for returning information about contract failures at runtime.
Variants§
Trait Implementations§
source§impl Debug for RuntimeContractError
impl Debug for RuntimeContractError
source§impl Display for RuntimeContractError
impl Display for RuntimeContractError
source§impl Error for RuntimeContractError
impl Error for RuntimeContractError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for RuntimeContractError
impl PartialEq for RuntimeContractError
source§fn eq(&self, other: &RuntimeContractError) -> bool
fn eq(&self, other: &RuntimeContractError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuntimeContractError
Auto Trait Implementations§
impl RefUnwindSafe for RuntimeContractError
impl Send for RuntimeContractError
impl Sync for RuntimeContractError
impl Unpin for RuntimeContractError
impl UnwindSafe for RuntimeContractError
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