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§
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
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.