pub struct StoreReads { /* private fields */ }Expand description
Application reads over owned read-only connections, with a separate bounded executor for processing owned results after their transaction ends.
Implementations§
Source§impl StoreReads
impl StoreReads
Sourcepub fn open(path: &Path) -> Result<Self, DbError>
pub fn open(path: &Path) -> Result<Self, DbError>
Open application readers after the store’s schema has been validated. All connections open before any worker or read capability is exposed.
pub async fn read<F, R, E>(&self, read: F) -> Result<Result<R, E>, DbError>
pub async fn read_tracked<F, R, E>( &self, read: F, ) -> Result<(Result<R, E>, QueryDependencies), DbError>
Trait Implementations§
Source§impl Clone for StoreReads
impl Clone for StoreReads
Source§fn clone(&self) -> StoreReads
fn clone(&self) -> StoreReads
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 StoreReads
impl !RefUnwindSafe for StoreReads
impl Send for StoreReads
impl Sync for StoreReads
impl Unpin for StoreReads
impl UnsafeUnpin for StoreReads
impl !UnwindSafe for StoreReads
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