Trait Reader

Source
pub trait Reader: Send + Sync {
    // Required methods
    fn read(
        &self,
        session: &mut SessionHandle,
        option: Option<CallOptions>,
    ) -> impl Future<Output = Result<Response<Streaming<PartialResultSet>>, Status>> + Send;
    fn update_token(&mut self, resume_token: Vec<u8>);
    fn can_resume(&self) -> bool;
}

Required Methods§

Source

fn read( &self, session: &mut SessionHandle, option: Option<CallOptions>, ) -> impl Future<Output = Result<Response<Streaming<PartialResultSet>>, Status>> + Send

Source

fn update_token(&mut self, resume_token: Vec<u8>)

Source

fn can_resume(&self) -> bool

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§