Skip to main content

AsyncGetWithOpts

Trait AsyncGetWithOpts 

Source
pub trait AsyncGetWithOpts {
    // Required method
    fn get_stream_with<'a>(
        &'a self,
        identity: &'a StreamIdentity,
        opts: ReadOpts,
    ) -> impl Future<Output = Result<Option<Entity>, RepositoryError>> + Send + 'a;
}
Expand description

Async opt-out reads for a queued repository — the async counterpart to [GetWithOpts]. ReadOpts::no_lock() reads without acquiring the lock.

Required Methods§

Source

fn get_stream_with<'a>( &'a self, identity: &'a StreamIdentity, opts: ReadOpts, ) -> impl Future<Output = Result<Option<Entity>, RepositoryError>> + Send + 'a

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§