Struct ethcontract::errors::EventError
source · pub struct EventError {
pub signature: String,
pub inner: ExecutionError,
}Expand description
Error that can occur while streaming contract events.
Fields§
§signature: StringThe signature of the failed event.
inner: ExecutionErrorThe inner execution error that for the method transaction that failed.
Implementations§
source§impl EventError
impl EventError
sourcepub fn new<I: Into<ExecutionError>>(event: &Event, inner: I) -> Self
pub fn new<I: Into<ExecutionError>>(event: &Event, inner: I) -> Self
Create a new EventError from an ABI function specification and an
inner ExecutionError.
sourcepub fn from_parts(signature: String, inner: ExecutionError) -> Self
pub fn from_parts(signature: String, inner: ExecutionError) -> Self
Create a EventError from its signature and inner ExecutionError.
Trait Implementations§
source§impl Debug for EventError
impl Debug for EventError
source§impl Display for EventError
impl Display for EventError
source§impl Error for EventError
impl Error for EventError
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()
Auto Trait Implementations§
impl Freeze for EventError
impl !RefUnwindSafe for EventError
impl Send for EventError
impl Sync for EventError
impl Unpin for EventError
impl !UnwindSafe for EventError
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