use crateRaftTypeConfig;
use crateStorageError;
/// Unrecoverable error that causes Raft to shut down.
///
/// When a `Fatal` error occurs, the Raft node stops processing requests and enters a stopped state.
/// Applications should monitor for fatal errors and initiate graceful shutdown when detected.
///
/// # Variants
///
/// - `StorageError`: Underlying storage (log or state machine) encountered an error
/// - `Panicked`: Raft core task panicked due to a programming error
/// - `Stopped`: Raft was explicitly shut down via [`Raft::shutdown`]
///
/// [`Raft::shutdown`]: crate::Raft::shutdown