pub enum PersistentStorageIdentity {
File(PathBuf),
Opaque(String),
}Expand description
Stable identity of one durable database. File identities allow engine coordination to extend across independently constructed providers and OS processes; opaque identities coordinate providers inside one process.
Variants§
Implementations§
Source§impl PersistentStorageIdentity
impl PersistentStorageIdentity
Sourcepub fn for_database_path(path: &Path) -> StorageBackendResult<Self>
pub fn for_database_path(path: &Path) -> StorageBackendResult<Self>
Resolve the stable file identity for a database path. The database file itself may not exist yet because backends materialize it on first write, so a missing file anchors the identity on its canonicalized parent directory instead of failing.
Trait Implementations§
Source§impl Clone for PersistentStorageIdentity
impl Clone for PersistentStorageIdentity
Source§fn clone(&self) -> PersistentStorageIdentity
fn clone(&self) -> PersistentStorageIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PersistentStorageIdentity
impl Debug for PersistentStorageIdentity
impl Eq for PersistentStorageIdentity
Source§impl Hash for PersistentStorageIdentity
impl Hash for PersistentStorageIdentity
impl StructuralPartialEq for PersistentStorageIdentity
Auto Trait Implementations§
impl Freeze for PersistentStorageIdentity
impl RefUnwindSafe for PersistentStorageIdentity
impl Send for PersistentStorageIdentity
impl Sync for PersistentStorageIdentity
impl Unpin for PersistentStorageIdentity
impl UnsafeUnpin for PersistentStorageIdentity
impl UnwindSafe for PersistentStorageIdentity
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