pub struct AccountIndex<'a> { /* private fields */ }Expand description
Account history index.
Implementations§
Source§impl<'a> AccountIndex<'a>
impl<'a> AccountIndex<'a>
pub fn open(b: &'a [u8]) -> Result<AccountIndex<'a>, String>
Sourcepub fn postings(&self, acc: &AccountId) -> Result<Vec<Posting>, String>
pub fn postings(&self, acc: &AccountId) -> Result<Vec<Posting>, String>
All of an account’s positions in ascending order.
Sourcepub fn page(
&self,
acc: &AccountId,
cursor: Option<Posting>,
limit: usize,
desc: bool,
) -> Result<Vec<Posting>, String>
pub fn page( &self, acc: &AccountId, cursor: Option<Posting>, limit: usize, desc: bool, ) -> Result<Vec<Posting>, String>
A page of account history: up to limit positions strictly after cursor in
ascending order or, with desc, strictly before it in descending order; without
a cursor, from the start or the end. Version 2 decodes only the blocks it needs.
pub fn accounts(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AccountIndex<'a>
impl<'a> RefUnwindSafe for AccountIndex<'a>
impl<'a> Send for AccountIndex<'a>
impl<'a> Sync for AccountIndex<'a>
impl<'a> Unpin for AccountIndex<'a>
impl<'a> UnsafeUnpin for AccountIndex<'a>
impl<'a> UnwindSafe for AccountIndex<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].