Skip to main content

Backing

Trait Backing 

Source
pub trait Backing<E: Context>: Mutable {
    type Config: Clone + Send;

    // Required method
    fn init(
        context: E,
        cfg: Self::Config,
    ) -> impl Future<Output = Result<Self, JournalError>> + Send
       where Self: Sized;
}
Expand description

A Mutable journal that can back an authenticated Journal.

Required Associated Types§

Source

type Config: Clone + Send

The configuration needed to initialize this journal.

Required Methods§

Source

fn init( context: E, cfg: Self::Config, ) -> impl Future<Output = Result<Self, JournalError>> + Send
where Self: Sized,

Initialize the journal from its configuration.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<E: Context, A: CodecFixedShared> Backing<E> for commonware_storage::journal::contiguous::fixed::Journal<E, A>

Available on neither commonware_stability_BETA nor commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_GAMMA nor commonware_stability_RESERVED.
Source§

impl<E: Context, V: CodecShared> Backing<E> for commonware_storage::journal::contiguous::variable::Journal<E, V>

Available on neither commonware_stability_BETA nor commonware_stability_DELTA nor commonware_stability_EPSILON nor commonware_stability_GAMMA nor commonware_stability_RESERVED.
Source§

type Config = Config<<V as Read>::Cfg>