pub enum CallOutcome {
Ok(String),
Reverted(String),
}Expand description
The outcome of an eth_call: return data, or revert data.
Reverts are extremely common here — quoting a graduated token reverts by design — so they are a return value rather than an error. The caller decides what a revert means and builds the error with the right context.
Variants§
Ok(String)
The call returned data.
Reverted(String)
The call reverted, carrying this payload (possibly "0x").
Trait Implementations§
Source§impl Clone for CallOutcome
impl Clone for CallOutcome
Auto Trait Implementations§
impl Freeze for CallOutcome
impl RefUnwindSafe for CallOutcome
impl Send for CallOutcome
impl Sync for CallOutcome
impl Unpin for CallOutcome
impl UnsafeUnpin for CallOutcome
impl UnwindSafe for CallOutcome
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