pub struct RpcState { /* private fields */ }Implementations§
Source§impl RpcState
impl RpcState
pub fn builder() -> RpcStateBuilder<((), (), ())>
pub fn split(self) -> (RpcBlockSubscriber, RpcStateSubscriber)
pub async fn init(&self, mc_block_id: &BlockId) -> Result<()>
pub async fn acquire_download_block_permit(&self) -> SemaphorePermit<'_>
pub async fn acquire_run_get_method_permit(&self) -> RunGetMethodPermit
pub async fn bind_socket(&self) -> Result<TcpListener>
pub async fn bind_endpoint(&self) -> Result<RpcEndpoint>
pub fn config(&self) -> &RpcConfig
pub fn is_ready(&self) -> bool
pub fn is_full(&self) -> bool
pub fn load_timings(&self) -> Guard<Arc<StateTimings>>
pub fn jrpc_cache(&self) -> &JrpcEndpointCache
pub fn proto_cache(&self) -> &ProtoEndpointCache
pub fn subscriptions(&self) -> &RpcSubscriptions
pub fn zerostate_id(&self) -> &ZerostateId
pub fn get_latest_mc_info(&self) -> LatestMcInfo
pub fn rpc_storage_snapshot(&self) -> Option<RpcSnapshot>
pub async fn broadcast_external_message(&self, message: &[u8])
pub fn get_unpacked_blockchain_config(&self) -> Arc<LatestBlockchainConfig>
pub fn get_brief_block_info( &self, block_id: &BlockIdShort, snapshot: Option<&RpcSnapshot>, ) -> Result<Option<(BlockId, u32, BriefBlockInfo)>, RpcStateError>
pub fn get_brief_shards_descr( &self, mc_seqno: u32, snapshot: Option<&RpcSnapshot>, ) -> Result<Option<Vec<BriefShardDescr>>, RpcStateError>
pub fn get_libraries(&self) -> Dict<HashBytes, LibDescr>
pub fn get_raw_library(&self, hash: &HashBytes) -> Result<Option<Cell>>
pub fn get_account_state( &self, address: &StdAddr, ) -> Result<LoadedAccountState, RpcStateError>
pub fn get_accounts_by_code_hash( &self, code_hash: &HashBytes, continuation: Option<&StdAddr>, snapshot: Option<RpcSnapshot>, ) -> Result<CodeHashesIter<'_>, RpcStateError>
pub fn get_known_mc_blocks_range( &self, snapshot: Option<&RpcSnapshot>, ) -> Result<Option<(u32, u32)>, RpcStateError>
pub fn get_blocks_by_mc_seqno( &self, mc_seqno: u32, snapshot: Option<RpcSnapshot>, ) -> Result<Option<BlocksByMcSeqnoIter>, RpcStateError>
pub fn get_block_transactions( &self, block_id: &BlockIdShort, reverse: bool, cursor: Option<&BlockTransactionsCursor>, snapshot: Option<RpcSnapshot>, ) -> Result<Option<BlockTransactionsIterBuilder>, RpcStateError>
pub fn get_block_transaction_ids( &self, block_id: &BlockIdShort, reverse: bool, cursor: Option<&BlockTransactionsCursor>, snapshot: Option<RpcSnapshot>, ) -> Result<Option<BlockTransactionIdsIter>, RpcStateError>
pub fn get_transactions( &self, account: &StdAddr, start_lt: Option<u64>, end_lt: Option<u64>, reverse: bool, snapshot: Option<RpcSnapshot>, ) -> Result<TransactionsIterBuilder, RpcStateError>
pub fn get_transaction( &self, hash: &HashBytes, snapshot: Option<&RpcSnapshot>, ) -> Result<Option<TransactionData<'_>>, RpcStateError>
pub fn get_transaction_ext<'a>( &'a self, hash: &HashBytes, snapshot: Option<&RpcSnapshot>, ) -> Result<Option<TransactionDataExt<'a>>, RpcStateError>
pub fn get_transaction_info( &self, hash: &HashBytes, snapshot: Option<&RpcSnapshot>, ) -> Result<Option<TransactionInfo>, RpcStateError>
pub fn get_src_transaction<'a>( &'a self, account: &StdAddr, message_lt: u64, snapshot: Option<&RpcSnapshot>, ) -> Result<Option<impl AsRef<[u8]> + 'a>, RpcStateError>
pub fn get_dst_transaction<'a>( &'a self, in_msg_hash: &HashBytes, snapshot: Option<&RpcSnapshot>, ) -> Result<Option<impl AsRef<[u8]> + 'a>, RpcStateError>
pub async fn get_key_block_proof( &self, key_block_seqno: u32, ) -> Option<(BlockId, impl AsRef<[u8]> + Send + Sync + 'static)>
pub async fn get_block_proof( &self, block_id: &BlockId, ) -> Option<impl AsRef<[u8]> + Send + Sync + 'static>
pub async fn get_block_data( &self, block_id: &BlockId, ) -> Option<impl AsRef<[u8]> + Send + Sync + 'static>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RpcState
impl !RefUnwindSafe for RpcState
impl Send for RpcState
impl Sync for RpcState
impl Unpin for RpcState
impl !UnwindSafe for RpcState
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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