pub struct CheatcodeError {
pub message: String,
}
Expand description
Error thrown by cheatcodes.
Custom error with signature CheatcodeError(string)
and selector 0xeeaa9e6f
.
error CheatcodeError(string message);
Fields§
§message: String
Implementations§
Trait Implementations§
Source§impl Clone for CheatcodeError
impl Clone for CheatcodeError
Source§fn clone(&self) -> CheatcodeError
fn clone(&self) -> CheatcodeError
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 CheatcodeError
impl Debug for CheatcodeError
Source§impl Display for CheatcodeError
impl Display for CheatcodeError
Source§impl SolError for CheatcodeError
impl SolError for CheatcodeError
Source§type Parameters<'a> = (String,)
type Parameters<'a> = (String,)
The underlying tuple type which represents the error’s members. Read more
Source§type Token<'a> = <<CheatcodeError as SolError>::Parameters<'a> as SolType>::Token<'a>
type Token<'a> = <<CheatcodeError as SolError>::Parameters<'a> as SolType>::Token<'a>
The corresponding [
TokenSeq
] type.Source§fn new<'a>(tuple: <Self::Parameters<'a> as SolType>::RustType) -> Self
fn new<'a>(tuple: <Self::Parameters<'a> as SolType>::RustType) -> Self
Convert from the tuple type used for ABI encoding and decoding.
Source§fn tokenize(&self) -> Self::Token<'_>
fn tokenize(&self) -> Self::Token<'_>
Convert to the token type used for EIP-712 encoding and decoding.
§fn abi_encoded_size(&self) -> usize
fn abi_encoded_size(&self) -> usize
The size of the error params when encoded in bytes, without the
selector.
§fn abi_decode_raw(data: &[u8], validate: bool) -> Result<Self, Error>
fn abi_decode_raw(data: &[u8], validate: bool) -> Result<Self, Error>
ABI decode this call’s arguments from the given slice, without its
selector.
§fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
fn abi_decode(data: &[u8], validate: bool) -> Result<Self, Error>
ABI decode this error’s arguments from the given slice, with the
selector.
§fn abi_encode_raw(&self, out: &mut Vec<u8>)
fn abi_encode_raw(&self, out: &mut Vec<u8>)
ABI encode the error to the given buffer without its selector.
§fn abi_encode(&self) -> Vec<u8>
fn abi_encode(&self) -> Vec<u8>
ABI encode the error to the given buffer with its selector.
Auto Trait Implementations§
impl Freeze for CheatcodeError
impl RefUnwindSafe for CheatcodeError
impl Send for CheatcodeError
impl Sync for CheatcodeError
impl Unpin for CheatcodeError
impl UnwindSafe for CheatcodeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes