pub enum Notification {
SwitchingToLive,
ReorgDetected,
NoPastLogsFound,
}Expand description
Notifications emitted by the scanner to signal state changes or important events.
Variants§
SwitchingToLive
Emitted when transitioning from the latest events phase to live streaming mode in sync scanners.
ReorgDetected
Emitted when a blockchain reorganization is detected during scanning.
NoPastLogsFound
Emitted during the latest events phase when no matching logs are found in the scanned range.
Trait Implementations§
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<T: Clone> From<Notification> for ScannerMessage<T>
impl<T: Clone> From<Notification> for ScannerMessage<T>
Source§fn from(value: Notification) -> Self
fn from(value: Notification) -> Self
Converts to this type from the input type.
Source§impl<T: Clone> PartialEq<Notification> for ScannerMessage<T>
impl<T: Clone> PartialEq<Notification> for ScannerMessage<T>
Source§impl PartialEq for Notification
impl PartialEq for Notification
impl Copy for Notification
impl StructuralPartialEq for Notification
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more