pub struct TempRoot { /* private fields */ }Expand description
A Temporary Ditto persistence directory which will be deleted from storage when dropped.
Implementations§
Trait Implementations§
Source§impl DittoRoot for TempRoot
impl DittoRoot for TempRoot
Source§fn is_valid(&self) -> Result<(), DittoError>
fn is_valid(&self) -> Result<(), DittoError>
Return true if the provided Root path is a valid path
Source§fn root_dir_to_c_str(&self) -> Result<Box, DittoError>
fn root_dir_to_c_str(&self) -> Result<Box, DittoError>
Emits the Ditto root directory path as a null-terminated UTF-8 C-string
Source§fn root_path_as_str(&self) -> Result<&str, DittoError>
fn root_path_as_str(&self) -> Result<&str, DittoError>
Return the Root path as a
&strAuto Trait Implementations§
impl Freeze for TempRoot
impl RefUnwindSafe for TempRoot
impl Send for TempRoot
impl Sync for TempRoot
impl Unpin for TempRoot
impl UnwindSafe for TempRoot
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