pub struct EngineState {
pub current_phase: PhaseId,
pub last_committed_phase: PhaseId,
pub snapshot: Option<Snapshot>,
}Expand description
Simple state structure for Rabia engine persistence.
This contains only the essential state information needed for Rabia consensus.
Fields§
§current_phase: PhaseId§last_committed_phase: PhaseId§snapshot: Option<Snapshot>Implementations§
Source§impl EngineState
impl EngineState
Trait Implementations§
Source§impl Clone for EngineState
impl Clone for EngineState
Source§impl Debug for EngineState
impl Debug for EngineState
Source§impl<'de> Deserialize<'de> for EngineState
impl<'de> Deserialize<'de> for EngineState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for EngineState
impl Forget for EngineState
impl Move for EngineState
impl RefUnwindSafe for EngineState
impl Send for EngineState
impl Sync for EngineState
impl Unpin for EngineState
impl UnsafeUnpin for EngineState
impl UnwindSafe for EngineState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more