Skip to main content

PerformRead

Trait PerformRead 

Source
pub trait PerformRead<A: ReadAction> {
    // Required method
    fn read(
        &self,
        args: &A::Arguments,
    ) -> impl Future<Output = Result<A::Response, ListError>>;
}
Expand description

Trait indicating that a DataLayer can perform ReadAction A.

Required Methods§

Source

fn read( &self, args: &A::Arguments, ) -> impl Future<Output = Result<A::Response, ListError>>

Perform the read action on the provided data layer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<R, A> PerformRead<A> for InMemoryDataLayer
where R: Resource + 'static, A: ReadAction<Output = R> + InMemoryPerformRead + 'static,

Single PerformRead impl for InMemoryDataLayer that delegates to InMemoryPerformRead::execute.