Skip to main content

WalTypes

Trait WalTypes 

Source
pub trait WalTypes:
    Debug
    + Default
    + PartialEq
    + Eq
    + Clone
    + 'static {
    type Action: Debug + Clone + Codec + Send + 'static;
    type Checkpoint: Debug + Clone + PartialEq + Eq + Codec + Send + Sync + 'static;
    type Callback: Callback;
}
Expand description

Defines the concrete types used by the WAL.

Required Associated Types§

Source

type Action: Debug + Clone + Codec + Send + 'static

Source

type Checkpoint: Debug + Clone + PartialEq + Eq + Codec + Send + Sync + 'static

Source

type Callback: Callback

Callback handlers for notification of an IO operation.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T> WalTypes for RaftWalTypes<T>
where T: Types,

Source§

type Action = RaftLogAction<T>

Source§

type Checkpoint = RaftLogState<T>

Source§

type Callback = <T as Types>::Callback