pub enum Notification {
BlockAdded(BlockAddedNotification),
VirtualChainChanged(VirtualChainChangedNotification),
FinalityConflict(FinalityConflictNotification),
FinalityConflictResolved(FinalityConflictResolvedNotification),
UtxosChanged(UtxosChangedNotification),
SinkBlueScoreChanged(SinkBlueScoreChangedNotification),
VirtualDaaScoreChanged(VirtualDaaScoreChangedNotification),
PruningPointUtxoSetOverride(PruningPointUtxoSetOverrideNotification),
NewBlockTemplate(NewBlockTemplateNotification),
}Variants§
BlockAdded(BlockAddedNotification)
VirtualChainChanged(VirtualChainChangedNotification)
FinalityConflict(FinalityConflictNotification)
FinalityConflictResolved(FinalityConflictResolvedNotification)
UtxosChanged(UtxosChangedNotification)
SinkBlueScoreChanged(SinkBlueScoreChangedNotification)
VirtualDaaScoreChanged(VirtualDaaScoreChangedNotification)
PruningPointUtxoSetOverride(PruningPointUtxoSetOverrideNotification)
NewBlockTemplate(NewBlockTemplateNotification)
Trait Implementations§
Source§impl AsRef<Notification> for Notification
impl AsRef<Notification> for Notification
Source§impl Clone for Notification
impl Clone for Notification
Source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Notification
impl Debug for Notification
Source§impl Display for Notification
impl Display for Notification
Source§impl From<&Notification> for EventType
impl From<&Notification> for EventType
Source§fn from(value: &Notification) -> Self
fn from(value: &Notification) -> Self
Converts to this type from the input type.
Source§impl From<&Notification> for Scope
impl From<&Notification> for Scope
Source§fn from(value: &Notification) -> Self
fn from(value: &Notification) -> Self
Converts to this type from the input type.
Source§impl Notification for Notification
impl Notification for Notification
fn apply_overall_subscription( &self, subscription: &OverallSubscription, _context: &SubscriptionContext, ) -> Option<Self>
fn apply_virtual_chain_changed_subscription( &self, subscription: &VirtualChainChangedSubscription, _context: &SubscriptionContext, ) -> Option<Self>
fn apply_utxos_changed_subscription( &self, _subscription: &UtxosChangedSubscription, _context: &SubscriptionContext, ) -> Option<Self>
fn event_type(&self) -> EventType
fn apply_subscription( &self, subscription: &dyn Single, context: &SubscriptionContext, ) -> Option<Self>
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
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<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