use crate::{
groups::{ApplyContext, StateMachine, replay::LogReplaySync},
primitives::UniqueId,
};
#[derive(Debug, Default)]
pub struct NoOp;
impl StateMachine for NoOp {
type Command = ();
type Query = ();
type QueryResult = ();
type StateSync = LogReplaySync<Self>;
fn signature(&self) -> UniqueId {
UniqueId::from("mosaik_noop_state_machine")
}
fn apply(&mut self, (): Self::Command, _: &dyn ApplyContext) {}
fn query(&self, (): Self::Query) -> Self::QueryResult {}
fn state_sync(&self) -> Self::StateSync {
LogReplaySync::default()
}
}