pub enum StorageLocator {
Memory,
Preopened {
reference: Symbol,
access: StorageAccess,
},
}Expand description
Provider-neutral storage authority passed to a relation driver.
Paths are deliberately absent: the capsule resolves the opaque reference.
Variants§
Memory
A private, connection-scoped database.
Preopened
A preopened storage reference with explicit write authority.
Fields
§
access: StorageAccessAuthority granted for this connection.
Implementations§
Source§impl StorageLocator
impl StorageLocator
Sourcepub fn from_datum(value: &Datum) -> Result<Self, SiteError>
pub fn from_datum(value: &Datum) -> Result<Self, SiteError>
Decodes the closed public locator grammar.
Trait Implementations§
Source§impl Clone for StorageLocator
impl Clone for StorageLocator
Source§fn clone(&self) -> StorageLocator
fn clone(&self) -> StorageLocator
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 StorageLocator
impl Debug for StorageLocator
impl Eq for StorageLocator
Source§impl PartialEq for StorageLocator
impl PartialEq for StorageLocator
impl StructuralPartialEq for StorageLocator
Auto Trait Implementations§
impl Freeze for StorageLocator
impl RefUnwindSafe for StorageLocator
impl Send for StorageLocator
impl Sync for StorageLocator
impl Unpin for StorageLocator
impl UnsafeUnpin for StorageLocator
impl UnwindSafe for StorageLocator
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