pub struct Pulsify(/* private fields */);Expand description
Managed state: the single SQLite writer and every open session.
The database opens on first use, so an unavailable file fails open with
CONNECTION_FAILED (retried by the webview) instead of the app’s startup.
Implementations§
Source§impl Pulsify
impl Pulsify
Sourcepub fn with_store<T>(
&self,
work: impl FnOnce(&mut SqliteStore) -> T,
) -> Result<T, CommandError>
pub fn with_store<T>( &self, work: impl FnOnce(&mut SqliteStore) -> T, ) -> Result<T, CommandError>
Runs work with exclusive access to the store, e.g. for backups or maintenance.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Pulsify
impl Freeze for Pulsify
impl RefUnwindSafe for Pulsify
impl Send for Pulsify
impl Sync for Pulsify
impl Unpin for Pulsify
impl UnsafeUnpin for Pulsify
impl UnwindSafe for Pulsify
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