pub struct BlockchainRpcClient { /* private fields */ }Implementations§
Source§impl BlockchainRpcClient
impl BlockchainRpcClient
pub fn builder() -> BlockchainRpcClientBuilder<()>
pub fn overlay(&self) -> &PublicOverlay
pub fn overlay_client(&self) -> &PublicOverlayClient
Sourcepub async fn broadcast_external_message(&self, message: &[u8]) -> usize
pub async fn broadcast_external_message(&self, message: &[u8]) -> usize
Broadcasts a message to the current targets list and returns the number of peers the message was delivered to.
pub async fn get_next_key_block_ids( &self, block: &BlockId, max_size: u32, ) -> Result<QueryResponse<KeyBlockIds>, Error>
pub async fn get_block_full( &self, block: &BlockId, requirement: DataRequirement, ) -> Result<BlockDataFullWithNeighbour, Error>
pub async fn get_next_block_full( &self, prev_block: &BlockId, requirement: DataRequirement, ) -> Result<BlockDataFullWithNeighbour, Error>
pub async fn get_key_block_proof( &self, block_id: &BlockId, ) -> Result<QueryResponse<KeyBlockProof>, Error>
pub async fn get_zerostate_proof( &self, ) -> Result<QueryResponse<ZerostateProof>, Error>
pub async fn get_persistent_state_info( &self, block_id: &BlockId, ) -> Result<QueryResponse<PersistentStateInfo>, Error>
pub async fn get_persistent_state_part( &self, neighbour: &Neighbour, block_id: &BlockId, offset: u64, ) -> Result<QueryResponse<Data>, Error>
pub async fn find_persistent_state( &self, block_id: &BlockId, kind: PersistentStateKind, ) -> Result<PendingPersistentState, Error>
pub async fn download_persistent_state<W>( &self, state: PendingPersistentState, output: W, ) -> Result<W, Error>
pub async fn find_archive( &self, mc_seqno: u32, ) -> Result<PendingArchiveResponse, Error>
pub async fn download_archive<W>( &self, archive: PendingArchive, output: W, ) -> Result<W, Error>
Trait Implementations§
Source§impl ArchiveClient for BlockchainRpcClient
impl ArchiveClient for BlockchainRpcClient
fn find_archive<'a, 'async_trait>(
&'a self,
mc_seqno: u32,
ctx: ArchiveDownloadContext<'a>,
) -> Pin<Box<dyn Future<Output = Result<Option<FoundArchive<'a>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
Source§impl Clone for BlockchainRpcClient
impl Clone for BlockchainRpcClient
Source§fn clone(&self) -> BlockchainRpcClient
fn clone(&self) -> BlockchainRpcClient
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 moreSource§impl IntoArchiveClient for BlockchainRpcClient
impl IntoArchiveClient for BlockchainRpcClient
fn into_archive_client(self) -> Arc<dyn ArchiveClient>
Auto Trait Implementations§
impl Freeze for BlockchainRpcClient
impl !RefUnwindSafe for BlockchainRpcClient
impl Send for BlockchainRpcClient
impl Sync for BlockchainRpcClient
impl Unpin for BlockchainRpcClient
impl !UnwindSafe for BlockchainRpcClient
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