Trait mz_storage_client::client::StorageClient

source ·
pub trait StorageClient<T = Timestamp>: GenericClient<StorageCommand<T>, StorageResponse<T>> { }
Expand description

A client to a storage server.

Trait Implementations§

source§

impl<T: Send> GenericClient<StorageCommand<T>, StorageResponse<T>> for Box<dyn StorageClient<T>>

source§

fn send<'life0, 'async_trait>( &'life0 mut self, cmd: StorageCommand<T> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sends a command to the dataflow server. Read more
source§

fn recv<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Option<StorageResponse<T>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Receives the next response from the dataflow server. Read more
source§

fn as_stream<'a>( &'a mut self ) -> Pin<Box<dyn Stream<Item = Result<R, Error>> + Send + 'a>>
where R: Send + 'a,

Returns an adapter that treats the client as a stream. Read more

Implementors§