pub struct FileLastVoteStore { /* private fields */ }Implementations§
Source§impl FileLastVoteStore
impl FileLastVoteStore
pub fn new(path: impl Into<PathBuf>) -> Self
pub fn load_file(&self) -> RdbFileResult<DurableLastVote>
pub fn persist_file(&self, vote: &DurableLastVote) -> RdbFileResult<()>
Auto Trait Implementations§
impl Freeze for FileLastVoteStore
impl RefUnwindSafe for FileLastVoteStore
impl Send for FileLastVoteStore
impl Sync for FileLastVoteStore
impl Unpin for FileLastVoteStore
impl UnsafeUnpin for FileLastVoteStore
impl UnwindSafe for FileLastVoteStore
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