pub struct IndexerClient { /* private fields */ }Implementations§
Source§impl IndexerClient
impl IndexerClient
pub async fn connect(url: &str) -> Result<Self, IndexerApiError>
pub async fn close(&self) -> Result<(), IndexerApiError>
pub async fn status(&self) -> Result<Vec<Span>, IndexerApiError>
pub async fn variants(&self) -> Result<Vec<PalletMeta>, IndexerApiError>
pub async fn size_on_disk(&self) -> Result<u64, IndexerApiError>
pub async fn get_events( &self, key: Key, limit: Option<u16>, before: Option<EventRef>, ) -> Result<EventsResponse, IndexerApiError>
pub async fn subscribe_status( &self, ) -> Result<StatusSubscription, IndexerApiError>
pub async fn unsubscribe_status(&self) -> Result<(), IndexerApiError>
pub async fn subscribe_events( &self, key: Key, ) -> Result<EventSubscription, IndexerApiError>
pub async fn unsubscribe_events(&self, key: Key) -> Result<(), IndexerApiError>
Trait Implementations§
Source§impl Clone for IndexerClient
impl Clone for IndexerClient
Source§fn clone(&self) -> IndexerClient
fn clone(&self) -> IndexerClient
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 moreAuto Trait Implementations§
impl Freeze for IndexerClient
impl !RefUnwindSafe for IndexerClient
impl Send for IndexerClient
impl Sync for IndexerClient
impl Unpin for IndexerClient
impl UnsafeUnpin for IndexerClient
impl !UnwindSafe for IndexerClient
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