pub enum GenericPath {
Filesystem(PathBuf),
SharedMeta {
path: Box<GenericPath>,
meta: Arc<Mutex<LogMetadata>>,
},
Nothing,
}Expand description
Abstract Path for [Log].
This defines where a [Log] reads and writes data.
Variants§
Filesystem(PathBuf)
The [Log] is backed by a directory on filesystem.
Metadata is shared (between Log and MultiLog).
Other parts still use path.
Nothing
From nothing. Indicates creating from memory.
Implementations§
Source§impl GenericPath
impl GenericPath
Sourcepub fn as_opt_path(&self) -> Option<&Path>
pub fn as_opt_path(&self) -> Option<&Path>
Return the main filesystem path.
Trait Implementations§
Source§impl Clone for GenericPath
impl Clone for GenericPath
Source§fn clone(&self) -> GenericPath
fn clone(&self) -> GenericPath
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenericPath
impl Debug for GenericPath
Source§impl From<&Path> for GenericPath
impl From<&Path> for GenericPath
Source§impl From<&PathBuf> for GenericPath
impl From<&PathBuf> for GenericPath
Source§impl From<&str> for GenericPath
impl From<&str> for GenericPath
Source§impl From<()> for GenericPath
impl From<()> for GenericPath
Auto Trait Implementations§
impl Freeze for GenericPath
impl RefUnwindSafe for GenericPath
impl Send for GenericPath
impl Sync for GenericPath
impl Unpin for GenericPath
impl UnwindSafe for GenericPath
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