pub struct StorageAdapter<T> {
pub name: StorageAdapterName,
pub path: String,
pub db_instance: Pin<Arc<T>>,
pub variant: StorageVariant,
}
Fields§
§name: StorageAdapterName
§path: String
§db_instance: Pin<Arc<T>>
§variant: StorageVariant
Implementations§
Source§impl<T> StorageAdapter<T>
impl<T> StorageAdapter<T>
pub fn new( name: StorageAdapterName, path: String, db_instance: T, variant: StorageVariant, ) -> Result<Self, Error>
Trait Implementations§
Source§impl<T: Clone> Clone for StorageAdapter<T>
impl<T: Clone> Clone for StorageAdapter<T>
Source§fn clone(&self) -> StorageAdapter<T>
fn clone(&self) -> StorageAdapter<T>
Returns a copy 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 moreAuto Trait Implementations§
impl<T> Freeze for StorageAdapter<T>
impl<T> RefUnwindSafe for StorageAdapter<T>where
T: RefUnwindSafe,
impl<T> Send for StorageAdapter<T>
impl<T> Sync for StorageAdapter<T>
impl<T> Unpin for StorageAdapter<T>
impl<T> UnwindSafe for StorageAdapter<T>where
T: RefUnwindSafe,
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