pub trait Source<A: Application>: JournalConsumer<A> {
// Required method
fn load(
&mut self,
) -> impl Future<Output = Result<Recovery<A>, Incompatible>> + Send;
// Provided methods
fn read(
&mut self,
_after: Position,
_through: Position,
) -> impl Future<Output = Result<Recovery<A>, Error>> + Send { ... }
fn prune(&mut self, _beneath: Position) -> impl Future<Output = ()> + Send { ... }
}Required Methods§
Provided Methods§
fn read( &mut self, _after: Position, _through: Position, ) -> impl Future<Output = Result<Recovery<A>, Error>> + Send
fn prune(&mut self, _beneath: Position) -> impl Future<Output = ()> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".