pub enum Scope {
BlockAdded(BlockAddedScope),
VirtualChainChanged(VirtualChainChangedScope),
FinalityConflict(FinalityConflictScope),
FinalityConflictResolved(FinalityConflictResolvedScope),
UtxosChanged(UtxosChangedScope),
SinkBlueScoreChanged(SinkBlueScoreChangedScope),
VirtualDaaScoreChanged(VirtualDaaScoreChangedScope),
PruningPointUtxoSetOverride(PruningPointUtxoSetOverrideScope),
NewBlockTemplate(NewBlockTemplateScope),
}Expand description
Subscription scope for every event type
Variants§
BlockAdded(BlockAddedScope)
VirtualChainChanged(VirtualChainChangedScope)
FinalityConflict(FinalityConflictScope)
FinalityConflictResolved(FinalityConflictResolvedScope)
UtxosChanged(UtxosChangedScope)
SinkBlueScoreChanged(SinkBlueScoreChangedScope)
VirtualDaaScoreChanged(VirtualDaaScoreChangedScope)
PruningPointUtxoSetOverride(PruningPointUtxoSetOverrideScope)
NewBlockTemplate(NewBlockTemplateScope)
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for Scope
impl BorshDeserialize for Scope
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for Scope
impl BorshSerialize for Scope
Source§impl<'de> Deserialize<'de> for Scope
impl<'de> Deserialize<'de> for Scope
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 Deserializer for Scope
impl Deserializer for Scope
Source§impl From<&TestNotification> for Scope
impl From<&TestNotification> for Scope
Source§fn from(value: &TestNotification) -> Self
fn from(value: &TestNotification) -> Self
Converts to this type from the input type.
Source§impl From<BlockAddedScope> for Scope
impl From<BlockAddedScope> for Scope
Source§fn from(value: BlockAddedScope) -> Self
fn from(value: BlockAddedScope) -> Self
Converts to this type from the input type.
Source§impl From<FinalityConflictResolvedScope> for Scope
impl From<FinalityConflictResolvedScope> for Scope
Source§fn from(value: FinalityConflictResolvedScope) -> Self
fn from(value: FinalityConflictResolvedScope) -> Self
Converts to this type from the input type.
Source§impl From<FinalityConflictScope> for Scope
impl From<FinalityConflictScope> for Scope
Source§fn from(value: FinalityConflictScope) -> Self
fn from(value: FinalityConflictScope) -> Self
Converts to this type from the input type.
Source§impl From<NewBlockTemplateScope> for Scope
impl From<NewBlockTemplateScope> for Scope
Source§fn from(value: NewBlockTemplateScope) -> Self
fn from(value: NewBlockTemplateScope) -> Self
Converts to this type from the input type.
Source§impl From<PruningPointUtxoSetOverrideScope> for Scope
impl From<PruningPointUtxoSetOverrideScope> for Scope
Source§fn from(value: PruningPointUtxoSetOverrideScope) -> Self
fn from(value: PruningPointUtxoSetOverrideScope) -> Self
Converts to this type from the input type.
Source§impl From<SinkBlueScoreChangedScope> for Scope
impl From<SinkBlueScoreChangedScope> for Scope
Source§fn from(value: SinkBlueScoreChangedScope) -> Self
fn from(value: SinkBlueScoreChangedScope) -> Self
Converts to this type from the input type.
Source§impl From<UtxosChangedScope> for Scope
impl From<UtxosChangedScope> for Scope
Source§fn from(value: UtxosChangedScope) -> Self
fn from(value: UtxosChangedScope) -> Self
Converts to this type from the input type.
Source§impl From<VirtualChainChangedScope> for Scope
impl From<VirtualChainChangedScope> for Scope
Source§fn from(value: VirtualChainChangedScope) -> Self
fn from(value: VirtualChainChangedScope) -> Self
Converts to this type from the input type.
Source§impl From<VirtualDaaScoreChangedScope> for Scope
impl From<VirtualDaaScoreChangedScope> for Scope
Source§fn from(value: VirtualDaaScoreChangedScope) -> Self
fn from(value: VirtualDaaScoreChangedScope) -> Self
Converts to this type from the input type.
Source§impl Serializer for Scope
impl Serializer for Scope
impl Eq for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnwindSafe for Scope
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