Skip to main content

Source

Trait Source 

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

Source

fn load( &mut self, ) -> impl Future<Output = Result<Recovery<A>, Incompatible>> + Send

Provided Methods§

Source

fn read( &mut self, _after: Position, _through: Position, ) -> impl Future<Output = Result<Recovery<A>, Error>> + Send

Source

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

Implementors§