Enum ethcontract::contract::EventStatus
source · 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 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<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>
source§fn eq(&self, other: &EventStatus<T>) -> bool
fn eq(&self, other: &EventStatus<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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<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.