pub struct NyxdScraper<S> { /* private fields */ }Implementations§
Source§impl<S> NyxdScraper<S>
impl<S> NyxdScraper<S>
pub fn builder(config: Config) -> NyxdScraperBuilder<S>
pub async fn new(config: Config) -> Result<Self, ScraperError>
pub fn storage(&self) -> &S
pub async fn unsafe_process_single_block( &self, height: u32, ) -> Result<(), ScraperError>
pub async fn unsafe_process_block_range( &self, starting_height: Option<u32>, end_height: Option<u32>, ) -> Result<(), ScraperError>
pub async fn start(&self) -> Result<(), ScraperError>
pub async fn wait_for_startup_sync(&self)
pub async fn stop(self)
pub fn cancel_token(&self) -> CancellationToken
pub fn is_cancelled(&self) -> bool
Auto Trait Implementations§
impl<S> Freeze for NyxdScraper<S>where
S: Freeze,
impl<S> !RefUnwindSafe for NyxdScraper<S>
impl<S> Send for NyxdScraper<S>where
S: Send,
impl<S> Sync for NyxdScraper<S>where
S: Sync,
impl<S> Unpin for NyxdScraper<S>where
S: Unpin,
impl<S> !UnwindSafe for NyxdScraper<S>
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request