pub struct FileVoteStateStore { /* private fields */ }Expand description
File-backed store using atomic-rename + fsync semantics.
Persists JSON to a single file (e.g. <data-dir>/consensus/last_sign.json).
Updates are serialized through a mutex; the disk write itself is sync.
Implementations§
Trait Implementations§
Source§impl VoteStateStore for FileVoteStateStore
impl VoteStateStore for FileVoteStateStore
Auto Trait Implementations§
impl !Freeze for FileVoteStateStore
impl !RefUnwindSafe for FileVoteStateStore
impl Send for FileVoteStateStore
impl Sync for FileVoteStateStore
impl Unpin for FileVoteStateStore
impl UnsafeUnpin for FileVoteStateStore
impl UnwindSafe for FileVoteStateStore
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