pub struct PersistentConsensusState { /* private fields */ }Expand description
Persistent consensus state store backed by vsdb
Implementations§
Source§impl PersistentConsensusState
impl PersistentConsensusState
pub fn new() -> Self
pub fn save_current_view(&mut self, view: ViewNumber)
pub fn load_current_view(&self) -> Option<ViewNumber>
pub fn save_locked_qc(&mut self, qc: &QuorumCertificate)
pub fn load_locked_qc(&self) -> Option<QuorumCertificate>
pub fn save_highest_qc(&mut self, qc: &QuorumCertificate)
pub fn load_highest_qc(&self) -> Option<QuorumCertificate>
pub fn save_last_committed_height(&mut self, height: Height)
pub fn load_last_committed_height(&self) -> Option<Height>
pub fn save_current_epoch(&mut self, epoch: &Epoch)
pub fn load_current_epoch(&self) -> Option<Epoch>
pub fn flush(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PersistentConsensusState
impl RefUnwindSafe for PersistentConsensusState
impl Send for PersistentConsensusState
impl Sync for PersistentConsensusState
impl Unpin for PersistentConsensusState
impl UnsafeUnpin for PersistentConsensusState
impl UnwindSafe for PersistentConsensusState
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