Struct ethcontract::contract::Event [−][src]
pub struct Event<T> { pub data: T, pub meta: Option<EventMetadata>, }
Expand description
A contract event
Fields
data: T
The decoded log data.
meta: Option<EventMetadata>
The additional metadata for the event. Note that this is not always
available if these logs are pending. This can happen if the to_block
option was set to BlockNumber::Pending
.
Implementations
Get a reference the underlying event data regardless of whether the event was added or removed.
Gets a bool representing if the event was removed.
Get the underlying event data if the event was added, None
otherwise.
Get the underlying event data if the event was removed, None
otherwise.
Maps the inner data of an event into some other data.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Event<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Event<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V