pub struct ChainBlockProvider<T1, T2> { /* private fields */ }Implementations§
Source§impl<T1, T2> ChainBlockProvider<T1, T2>
impl<T1, T2> ChainBlockProvider<T1, T2>
Trait Implementations§
Source§impl<T1: BlockProvider, T2: BlockProvider> BlockProvider for ChainBlockProvider<T1, T2>
impl<T1: BlockProvider, T2: BlockProvider> BlockProvider for ChainBlockProvider<T1, T2>
type GetNextBlockFut<'a> = Pin<Box<dyn Future<Output = Option<Result<WithArchiveData<BlockStuff>, Error>>> + Send + 'a>>
type GetBlockFut<'a> = Pin<Box<dyn Future<Output = Option<Result<WithArchiveData<BlockStuff>, Error>>> + Send + 'a>>
type CleanupFut<'a> = Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a>>
Source§fn get_next_block<'a>(
&'a self,
prev_block_id: &'a BlockId,
) -> Self::GetNextBlockFut<'a>
fn get_next_block<'a>( &'a self, prev_block_id: &'a BlockId, ) -> Self::GetNextBlockFut<'a>
Wait for the next block. Mostly used for masterchain blocks.
Source§fn get_block<'a>(
&'a self,
block_id_relation: &'a BlockIdRelation,
) -> Self::GetBlockFut<'a>
fn get_block<'a>( &'a self, block_id_relation: &'a BlockIdRelation, ) -> Self::GetBlockFut<'a>
Get the exact block. Provider must return the requested block.
Source§fn cleanup_until(&self, mc_seqno: u32) -> Self::CleanupFut<'_>
fn cleanup_until(&self, mc_seqno: u32) -> Self::CleanupFut<'_>
Clear resources until (and including) the specified masterchain block seqno.
Auto Trait Implementations§
impl<T1, T2> !Freeze for ChainBlockProvider<T1, T2>
impl<T1, T2> RefUnwindSafe for ChainBlockProvider<T1, T2>where
T2: RefUnwindSafe,
T1: RefUnwindSafe,
impl<T1, T2> Send for ChainBlockProvider<T1, T2>
impl<T1, T2> Sync for ChainBlockProvider<T1, T2>
impl<T1, T2> Unpin for ChainBlockProvider<T1, T2>where
T2: Unpin,
impl<T1, T2> UnwindSafe for ChainBlockProvider<T1, T2>where
T2: UnwindSafe,
T1: RefUnwindSafe,
Blanket Implementations§
Source§impl<B> BlockProviderExt for Bwhere
B: BlockProvider,
impl<B> BlockProviderExt for Bwhere
B: BlockProvider,
fn boxed(self) -> BoxBlockProvider
fn chain<T>(self, other: T) -> ChainBlockProvider<B, T>where
T: BlockProvider,
fn cycle<T>(self, other: T) -> CycleBlockProvider<B, T>where
T: BlockProvider,
fn retry(self, config: RetryConfig) -> RetryBlockProvider<B>
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> 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