pub struct OwnedReaderCache { /* private fields */ }Implementations§
Source§impl OwnedReaderCache
impl OwnedReaderCache
Sourcepub fn read_snapshot(
&mut self,
location: ProfileLocation,
keys: KeyFile,
options: ReadOptions,
) -> Result<ProfileReader>
pub fn read_snapshot( &mut self, location: ProfileLocation, keys: KeyFile, options: ReadOptions, ) -> Result<ProfileReader>
Establish every database snapshot while the caller excludes profile writes. Each checked-out cache belongs to one request; nested queries use a second connection pinned at the same barrier rather than opening a later view.
Sourcepub fn read(
&mut self,
location: ProfileLocation,
keys: KeyFile,
options: ReadOptions,
) -> Result<ProfileReader>
pub fn read( &mut self, location: ProfileLocation, keys: KeyFile, options: ReadOptions, ) -> Result<ProfileReader>
The caller must own the profile and hold its account gate until the
returned reader is dropped. This path may update SQLite’s WAL index.
Offline inspection must continue to use ProfileReader::open instead.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OwnedReaderCache
impl RefUnwindSafe for OwnedReaderCache
impl Send for OwnedReaderCache
impl Sync for OwnedReaderCache
impl Unpin for OwnedReaderCache
impl UnsafeUnpin for OwnedReaderCache
impl UnwindSafe for OwnedReaderCache
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