pub struct SyncingDatasource { /* private fields */ }Implementations§
Source§impl SyncingDatasource
impl SyncingDatasource
pub fn new( tip: Arc<dyn TipSource>, checkpoint: Arc<dyn CheckpointStore>, backfill: Arc<dyn BackfillSource>, live: Arc<dyn LiveSource>, update_types: Vec<UpdateType>, config: SyncConfig, ) -> Self
Trait Implementations§
Source§impl Clone for SyncingDatasource
impl Clone for SyncingDatasource
Source§fn clone(&self) -> SyncingDatasource
fn clone(&self) -> SyncingDatasource
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 Datasource for SyncingDatasource
impl Datasource for SyncingDatasource
Source§fn consume<'life0, 'async_trait>(
&'life0 self,
_id: DatasourceId,
sender: Sender<(Updates, DatasourceId)>,
cancellation_token: CancellationToken,
metrics: Arc<MetricsCollection>,
) -> Pin<Box<dyn Future<Output = IndexerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn consume<'life0, 'async_trait>(
&'life0 self,
_id: DatasourceId,
sender: Sender<(Updates, DatasourceId)>,
cancellation_token: CancellationToken,
metrics: Arc<MetricsCollection>,
) -> Pin<Box<dyn Future<Output = IndexerResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Start producing updates and forward them to the provided
sender. Read moreSource§fn update_types(&self) -> Vec<UpdateType>
fn update_types(&self) -> Vec<UpdateType>
Advertise which update kinds this datasource will emit. Read more
Auto Trait Implementations§
impl Freeze for SyncingDatasource
impl !RefUnwindSafe for SyncingDatasource
impl Send for SyncingDatasource
impl Sync for SyncingDatasource
impl Unpin for SyncingDatasource
impl !UnwindSafe for SyncingDatasource
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