pub enum EventType {
BlockAdded = 0,
VirtualChainChanged = 1,
FinalityConflict = 2,
FinalityConflictResolved = 3,
UtxosChanged = 4,
SinkBlueScoreChanged = 5,
VirtualDaaScoreChanged = 6,
PruningPointUtxoSetOverride = 7,
NewBlockTemplate = 8,
}Expand description
Event type classifying subscriptions (see Scope) and notifications (see [Notification])
Note: This enum is central to the notification system. For supporting a new notification type, it is advised to start by adding a new variant here.
Variants§
BlockAdded = 0
VirtualChainChanged = 1
FinalityConflict = 2
FinalityConflictResolved = 3
UtxosChanged = 4
SinkBlueScoreChanged = 5
VirtualDaaScoreChanged = 6
PruningPointUtxoSetOverride = 7
NewBlockTemplate = 8
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventType
impl<'de> Deserialize<'de> for EventType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&TestNotification> for EventType
impl From<&TestNotification> for EventType
Source§fn from(value: &TestNotification) -> Self
fn from(value: &TestNotification) -> Self
Converts to this type from the input type.
Source§impl<T> Index<EventType> for EventArray<T>
impl<T> Index<EventType> for EventArray<T>
Source§impl<T> IndexMut<EventType> for EventArray<T>
impl<T> IndexMut<EventType> for EventArray<T>
Source§impl TryFrom<usize> for EventType
impl TryFrom<usize> for EventType
Source§type Error = TryFromError
type Error = TryFromError
The type returned in the event of a conversion error.
impl Copy for EventType
impl Eq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
Source§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere
T: Any + 'static,
Source§fn ref_any(&self) -> &(dyn Any + 'static)
fn ref_any(&self) -> &(dyn Any + 'static)
Returns a immutable reference to
Any, which is backed by the type implementing this trait.Source§fn mut_any(&mut self) -> &mut (dyn Any + 'static)
fn mut_any(&mut self) -> &mut (dyn Any + 'static)
Returns a mutable reference to
Any, which is backed by the type implementing this trait.Source§impl<T> CastFromSync for T
impl<T> CastFromSync for T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more