Skip to main content

Local

Trait Local 

Source
pub trait Local: Send + Sync {
    // Required methods
    fn apply(&self, state: &State, purges_after: u64);
    fn snapshot(&self) -> State;
}
Expand description

Makes this process’s runtime state match a State; the default applies to the process-wide stores.

Required Methods§

Source

fn apply(&self, state: &State, purges_after: u64)

Source

fn snapshot(&self) -> State

This process’s current state, to seed an empty store (a Redis that restarted without its data, or a new cluster).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§