pub struct PersistenceHandle { /* private fields */ }Expand description
Bus-insertable persistence handle used by runtime execution hooks.
Implementations§
Source§impl PersistenceHandle
impl PersistenceHandle
Sourcepub fn from_store<S>(store: S) -> Selfwhere
S: PersistenceStore + 'static,
pub fn from_store<S>(store: S) -> Selfwhere
S: PersistenceStore + 'static,
Create a handle from a concrete store implementation.
Sourcepub fn from_arc(store: Arc<dyn PersistenceStore>) -> Self
pub fn from_arc(store: Arc<dyn PersistenceStore>) -> Self
Create a handle from an existing trait-object Arc.
Sourcepub fn store(&self) -> Arc<dyn PersistenceStore>
pub fn store(&self) -> Arc<dyn PersistenceStore>
Access the shared persistence store.
Trait Implementations§
Source§impl Clone for PersistenceHandle
impl Clone for PersistenceHandle
Source§fn clone(&self) -> PersistenceHandle
fn clone(&self) -> PersistenceHandle
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 moreAuto Trait Implementations§
impl Freeze for PersistenceHandle
impl !RefUnwindSafe for PersistenceHandle
impl Send for PersistenceHandle
impl Sync for PersistenceHandle
impl Unpin for PersistenceHandle
impl UnsafeUnpin for PersistenceHandle
impl !UnwindSafe for PersistenceHandle
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