Struct darkbird::Persistent
source · pub struct Persistent {
pub db_session: DatabaseSession,
}Fields§
§db_session: DatabaseSessionImplementations§
source§impl Persistent
impl Persistent
pub async fn connect( db_name: DatabaseName, cfg_string: String ) -> Result<Persistent, ()>
pub async fn copy_memtable_to_database<K, Doc, THandler>( &self, storage: Arc<Storage<K, Doc>>, handler: &THandler )where THandler: Setter<K, Doc>, Doc: Serialize + DeserializeOwned + Clone + Send + 'static + Document, K: Serialize + DeserializeOwned + PartialOrd + Ord + PartialEq + Eq + Hash + Clone + Send + Sync + 'static,
pub async fn load_memtable_from_database<K, Doc, THandler>( &self, storage: Arc<Storage<K, Doc>>, handler: &THandler ) -> Result<(), SessionResult>where THandler: Getter<K, Doc>, Doc: Serialize + DeserializeOwned + Clone + Send + 'static + Document, K: Serialize + DeserializeOwned + PartialOrd + Ord + PartialEq + Eq + Hash + Clone + Send + Sync + 'static,
Auto Trait Implementations§
impl !RefUnwindSafe for Persistent
impl Send for Persistent
impl Sync for Persistent
impl Unpin for Persistent
impl !UnwindSafe for Persistent
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