pub struct IndexedState { /* private fields */ }Implementations§
Source§impl<'a> IndexedState
impl<'a> IndexedState
Sourcepub fn snapshot(&'a self) -> RwLockReadGuard<'a, Exchange>
pub fn snapshot(&'a self) -> RwLockReadGuard<'a, Exchange>
Current state snapshot
Sourcepub async fn next_raw_events(&mut self) -> Option<RawBlockEvents>
pub async fn next_raw_events(&mut self) -> Option<RawBlockEvents>
Next available batch of raw events
Sourcepub async fn next_state_events(&mut self) -> Option<StateBlockEvents>
pub async fn next_state_events(&mut self) -> Option<StateBlockEvents>
Next available batch of state events
Sourcepub fn request_id_seen(&self, request_id: u64) -> bool
pub fn request_id_seen(&self, request_id: u64) -> bool
Checks if particular request ID has been seen in consumed state events
Auto Trait Implementations§
impl !RefUnwindSafe for IndexedState
impl !UnwindSafe for IndexedState
impl Freeze for IndexedState
impl Send for IndexedState
impl Sync for IndexedState
impl Unpin for IndexedState
impl UnsafeUnpin for IndexedState
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> 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