Struct ckb_sdk::rpc::ckb_indexer::IndexerRpcClient
source · [−]Fields
client: Clienturl: Urlid: u64Implementations
sourceimpl IndexerRpcClient
impl IndexerRpcClient
pub fn new(uri: &str) -> Self
pub fn get_tip(&mut self) -> Result<Option<Tip>, RpcError>
pub fn get_cells(
&mut self,
search_key: SearchKey,
order: Order,
limit: Uint32,
after: Option<JsonBytes>
) -> Result<Pagination<Cell>, RpcError>
pub fn get_transactions(
&mut self,
search_key: SearchKey,
order: Order,
limit: Uint32,
after: Option<JsonBytes>
) -> Result<Pagination<Tx>, RpcError>
pub fn get_cells_capacity(
&mut self,
search_key: SearchKey
) -> Result<Option<CellsCapacity>, RpcError>
pub fn get_indexer_info(&mut self) -> Result<IndexerInfo, RpcError>
Auto Trait Implementations
impl !RefUnwindSafe for IndexerRpcClient
impl Send for IndexerRpcClient
impl Sync for IndexerRpcClient
impl Unpin for IndexerRpcClient
impl !UnwindSafe for IndexerRpcClient
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more