Trait Reader
Source pub trait Reader:
'static
+ Sync
+ Send {
// Required methods
fn read<'life0, 'async_trait>(
&'life0 self,
id: EntityId,
seq: i64,
) -> Pin<Box<dyn Future<Output = Result<Payload, ProtocolError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn read_to<'life0, 'async_trait>(
&'life0 self,
id: EntityId,
from: i64,
to: i64,
) -> Pin<Box<dyn Future<Output = Result<BTreeSet<Payload>, ProtocolError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn read_to_latest<'life0, 'async_trait>(
&'life0 self,
id: EntityId,
from: i64,
) -> Pin<Box<dyn Future<Output = Result<BTreeSet<Payload>, ProtocolError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}