faction 0.3.3

A no_std + alloc, protocol-independent cluster readiness state machine for startup coordination and readiness quorum tracking.
Documentation
// Copyright 2025 Umberto Gotti <umberto.gotti@umbertogotti.dev>
// Licensed under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0

use alloc::vec::Vec;

use crate::cluster_view::ClusterView;
use crate::command::Command;
use crate::observer::Observer;
use crate::transition::Transition;

pub struct NoOpObserver;

impl Observer for NoOpObserver {
    fn observe(&mut self, _command: Command, _transition: Transition) {}

    fn observe_query(&mut self, _command: Command, _cluster_view: ClusterView) {}

    fn observe_rejection(
        &mut self,
        _command: Command,
        _cluster_view: ClusterView,
        _admissible: Vec<Command>,
    ) {
    }
}