Skip to main content

## SyncSink

# Trait SyncSink

Source

    pub trait SyncSink: Send + Sync {
        // Required method
        fn push<'life0, 'life1, 'async_trait>(
            &'life0 self,
            op: &'life1 QueuedOp,
        ) -> Pin<Box<dyn Future<Output = Result<(), RepoError>> + Send + 'async_trait>>
           where Self: 'async_trait,
                 'life0: 'async_trait,
                 'life1: 'async_trait;
    }

Expand description

The slice of the repository the drain needs — narrow so it can be doubled in a test without forty `unimplemented!()` methods.

## Required Methods§

Source

#### fn push<'life0, 'life1, 'async_trait>( &'life0 self, op: &'life1 QueuedOp, ) -> Pin<Box<dyn Future<Output = Result<(), RepoError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

## Implementors§

Source §

### impl<T: MediaRepository + ?Sized> SyncSink for T