pub type State = ReadStateService;
Expand description
The read state type used by the scanner.
Aliased Type§
struct State { /* private fields */ }
Implementations
Source§impl ReadStateService
impl ReadStateService
Sourcepub fn db(&self) -> &ZebraDb
pub fn db(&self) -> &ZebraDb
Test-only access to the inner database. Can be used to modify the database without doing any consensus checks.
Sourcepub fn log_db_metrics(&self)
pub fn log_db_metrics(&self)
Logs rocksdb metrics using the read only state service.
Trait Implementations
Source§impl Clone for ReadStateService
impl Clone for ReadStateService
Source§fn clone(&self) -> ReadStateService
fn clone(&self) -> ReadStateService
Returns a copy 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 ReadStateService
impl Debug for ReadStateService
Source§impl Drop for ReadStateService
impl Drop for ReadStateService
Source§impl Service<ReadRequest> for ReadStateService
impl Service<ReadRequest> for ReadStateService
Source§type Response = ReadResponse
type Response = ReadResponse
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<ReadStateService as Service<ReadRequest>>::Response, <ReadStateService as Service<ReadRequest>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<ReadStateService as Service<ReadRequest>>::Response, <ReadStateService as Service<ReadRequest>>::Error>> + Send>>
The future response value.
Source§fn poll_ready(
&mut self,
_: &mut Context<'_>,
) -> Poll<Result<(), <ReadStateService as Service<ReadRequest>>::Error>>
fn poll_ready( &mut self, _: &mut Context<'_>, ) -> Poll<Result<(), <ReadStateService as Service<ReadRequest>>::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read moreSource§fn call(
&mut self,
req: ReadRequest,
) -> <ReadStateService as Service<ReadRequest>>::Future
fn call( &mut self, req: ReadRequest, ) -> <ReadStateService as Service<ReadRequest>>::Future
Process the request and return the response asynchronously. Read more