Struct disk_persist::DiskPersist
source · [−]pub struct DiskPersist<D> { /* private fields */ }
Expand description
A struct for managing persistent data on disk
Implementations
sourceimpl<D: Serialize + DeserializeOwned> DiskPersist<D>
impl<D: Serialize + DeserializeOwned> DiskPersist<D>
sourcepub fn init_with_path(path: impl AsRef<Path>) -> Result<Self, DataError>
pub fn init_with_path(path: impl AsRef<Path>) -> Result<Self, DataError>
Initialize a new DiskPersist
with a custom path.
Auto Trait Implementations
impl<D> RefUnwindSafe for DiskPersist<D> where
D: RefUnwindSafe,
impl<D> Send for DiskPersist<D> where
D: Send,
impl<D> Sync for DiskPersist<D> where
D: Sync,
impl<D> Unpin for DiskPersist<D> where
D: Unpin,
impl<D> UnwindSafe for DiskPersist<D> where
D: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more