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)
Implementations§
Trait Implementations§
Source§impl AsRef<Notification> for Notification
impl AsRef<Notification> for Notification
Source§fn as_ref(&self) -> &Notification
fn as_ref(&self) -> &Notification
Converts this type into a shared reference of the (usually inferred) input type.
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 · Source§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<'de> Deserialize<'de> for Notification
impl<'de> Deserialize<'de> for Notification
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Notification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Notification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Deserializer for Notification
impl Deserializer for Notification
fn deserialize<R>(reader: &mut R) -> Result<Notification, Error>where
R: Read,
fn try_from_slice(slice: &[u8]) -> Result<Self, Error>
Source§impl Display for Notification
impl Display for Notification
Source§impl From<&Notification> for Notification
impl From<&Notification> for Notification
Source§fn from(item: &Notification) -> Notification
fn from(item: &Notification) -> Notification
Converts to this type from the input type.
Source§impl From<&Notification> for Notification
impl From<&Notification> for Notification
Source§fn from(item: &Notification) -> Notification
fn from(item: &Notification) -> Notification
Converts to this type from the input type.
Source§impl From<&Notification> for Scope
impl From<&Notification> for Scope
Source§fn from(value: &Notification) -> Scope
fn from(value: &Notification) -> Scope
Converts to this type from the input type.
Source§impl From<Notification> for Notification
impl From<Notification> for Notification
Source§fn from(item: Notification) -> Notification
fn from(item: Notification) -> Notification
Converts to this type from the input type.
Source§impl From<Notification> for Notification
impl From<Notification> for Notification
Source§fn from(item: Notification) -> Notification
fn from(item: Notification) -> Notification
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<Notification>
fn apply_virtual_chain_changed_subscription( &self, subscription: &VirtualChainChangedSubscription, _context: &SubscriptionContext, ) -> Option<Notification>
fn apply_utxos_changed_subscription( &self, subscription: &UtxosChangedSubscription, context: &SubscriptionContext, ) -> Option<Notification>
fn event_type(&self) -> EventType
fn apply_subscription( &self, subscription: &dyn Single, context: &SubscriptionContext, ) -> Option<Self>
Source§impl Serialize for Notification
impl Serialize for Notification
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
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<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
impl<T, U> OverflowingInto<U> for Twhere
U: OverflowingFrom<T>,
fn overflowing_into(self) -> (U, bool)
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
impl<T, U> RoundingInto<U> for Twhere
U: RoundingFrom<T>,
fn rounding_into(self, rm: RoundingMode) -> (U, Ordering)
Source§impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
impl<T, U> SaturatingInto<U> for Twhere
U: SaturatingFrom<T>,
fn saturating_into(self) -> U
Source§impl<T> ToDebugString for Twhere
T: Debug,
impl<T> ToDebugString for Twhere
T: Debug,
Source§fn to_debug_string(&self) -> String
fn to_debug_string(&self) -> String
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.