[−][src]Trait actix_raft::storage::RaftStorage
A trait defining the interface of a Raft storage actor.
See the storage chapter of the guide for details and discussion on this trait and how to implement it.
Associated Types
type Actor: Actor<Context = Self::Context> + Handler<GetInitialState<E>> + Handler<SaveHardState<E>> + Handler<GetLogEntries<D, E>> + Handler<AppendEntryToLog<D, E>> + Handler<ReplicateToLog<D, E>> + Handler<ApplyEntryToStateMachine<D, R, E>> + Handler<ReplicateToStateMachine<D, E>> + Handler<CreateSnapshot<E>> + Handler<InstallSnapshot<E>> + Handler<GetCurrentSnapshot<E>>
The type to use as the storage actor. Should just be Self.
type Context: ActorContext + ToEnvelope<Self::Actor, GetInitialState<E>> + ToEnvelope<Self::Actor, SaveHardState<E>> + ToEnvelope<Self::Actor, GetLogEntries<D, E>> + ToEnvelope<Self::Actor, AppendEntryToLog<D, E>> + ToEnvelope<Self::Actor, ReplicateToLog<D, E>> + ToEnvelope<Self::Actor, ApplyEntryToStateMachine<D, R, E>> + ToEnvelope<Self::Actor, ReplicateToStateMachine<D, E>> + ToEnvelope<Self::Actor, CreateSnapshot<E>> + ToEnvelope<Self::Actor, InstallSnapshot<E>> + ToEnvelope<Self::Actor, GetCurrentSnapshot<E>>
The type to use as the storage actor's context. Should be Context<Self>
or SyncContext<Self>
.