pub enum DerivedContractError {
UnsupportedFormat(u16),
MissingFormatVersion,
NonCanonical,
Budget {
field: &'static str,
observed: u64,
maximum: u64,
},
Violation(&'static str),
ArithmeticOverflow,
Source(String),
Serde(String),
}Variants§
UnsupportedFormat(u16)
MissingFormatVersion
NonCanonical
Budget
Violation(&'static str)
ArithmeticOverflow
Source(String)
Serde(String)
Trait Implementations§
Source§impl Clone for DerivedContractError
impl Clone for DerivedContractError
Source§impl Debug for DerivedContractError
impl Debug for DerivedContractError
Source§impl Display for DerivedContractError
impl Display for DerivedContractError
impl Eq for DerivedContractError
Source§impl Error for DerivedContractError
impl Error for DerivedContractError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 DerivedContractError
impl PartialEq for DerivedContractError
impl StructuralPartialEq for DerivedContractError
Auto Trait Implementations§
impl Freeze for DerivedContractError
impl RefUnwindSafe for DerivedContractError
impl Send for DerivedContractError
impl Sync for DerivedContractError
impl Unpin for DerivedContractError
impl UnsafeUnpin for DerivedContractError
impl UnwindSafe for DerivedContractError
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