pub enum EventStatus<T> {
Added(T),
Removed(T),
}Expand description
A type representing a contract event that was either added or removed. Note that this type intentionally an enum so that the handling of removed events is made more explicit.
Variants§
Added(T)
A new event was received.
Removed(T)
A previously mined event was removed as a result of a re-org.
Trait Implementations§
Source§impl<T: Clone> Clone for EventStatus<T>
impl<T: Clone> Clone for EventStatus<T>
Source§fn clone(&self) -> EventStatus<T>
fn clone(&self) -> EventStatus<T>
Returns a duplicate 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<T: Debug> Debug for EventStatus<T>
impl<T: Debug> Debug for EventStatus<T>
Source§impl<T: PartialEq> PartialEq for EventStatus<T>
impl<T: PartialEq> PartialEq for EventStatus<T>
impl<T: Eq> Eq for EventStatus<T>
impl<T> StructuralPartialEq for EventStatus<T>
Auto Trait Implementations§
impl<T> Freeze for EventStatus<T>where
T: Freeze,
impl<T> RefUnwindSafe for EventStatus<T>where
T: RefUnwindSafe,
impl<T> Send for EventStatus<T>where
T: Send,
impl<T> Sync for EventStatus<T>where
T: Sync,
impl<T> Unpin for EventStatus<T>where
T: Unpin,
impl<T> UnwindSafe for EventStatus<T>where
T: UnwindSafe,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.