pub struct BlobSource<F, B>{
pub chain_provider: F,
pub blob_fetcher: B,
pub batcher_address: Address,
pub signer: Address,
pub data: Vec<BlobData>,
pub open: bool,
}
Expand description
A data iterator that reads from a blob.
Fields§
§chain_provider: F
Chain provider.
blob_fetcher: B
Fetches blobs.
batcher_address: Address
The address of the batcher contract.
signer: Address
The L1 Signer.
data: Vec<BlobData>
Data.
open: bool
Whether the source is open.
Implementations§
Source§impl<F, B> BlobSource<F, B>
impl<F, B> BlobSource<F, B>
Trait Implementations§
Source§impl<F, B> Clone for BlobSource<F, B>
impl<F, B> Clone for BlobSource<F, B>
Source§fn clone(&self) -> BlobSource<F, B>
fn clone(&self) -> BlobSource<F, B>
Returns a copy 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<F, B> DataAvailabilityProvider for BlobSource<F, B>
impl<F, B> DataAvailabilityProvider for BlobSource<F, B>
Source§fn next<'life0, 'life1, 'async_trait>(
&'life0 mut self,
block_ref: &'life1 BlockInfo,
) -> Pin<Box<dyn Future<Output = PipelineResult<Self::Item>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn next<'life0, 'life1, 'async_trait>(
&'life0 mut self,
block_ref: &'life1 BlockInfo,
) -> Pin<Box<dyn Future<Output = PipelineResult<Self::Item>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Returns the next data for the given BlockInfo.
Returns a
PipelineError::Eof
if there is no more data for the given block ref.Auto Trait Implementations§
impl<F, B> Freeze for BlobSource<F, B>
impl<F, B> RefUnwindSafe for BlobSource<F, B>where
F: RefUnwindSafe,
B: RefUnwindSafe,
impl<F, B> Send for BlobSource<F, B>
impl<F, B> Sync for BlobSource<F, B>
impl<F, B> Unpin for BlobSource<F, B>
impl<F, B> UnwindSafe for BlobSource<F, B>where
F: UnwindSafe,
B: UnwindSafe,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)