[−][src]Struct places::api::places_api::SyncConn
Wrapper around PlacesDb that automatically sets a flag (sync_conn_active
)
to false when finished
Fields
db: PlacesDb
flag: &'api AtomicBool
Methods from Deref<Target = PlacesDb>
pub fn new_interrupt_handle(&self) -> SqlInterruptHandle
[src]
pub fn begin_interrupt_scope(&self) -> SqlInterruptScope
[src]
pub fn conn_type(&self) -> ConnectionType
[src]
pub fn global_bookmark_change_tracker(&self) -> GlobalChangeCounterTracker
[src]
Returns an object that can tell you whether any changes have been made to bookmarks since this was called. While this conceptually should live on the PlacesApi, the things that need this typically only have a PlacesDb, so we expose it here.
pub fn api_id(&self) -> usize
[src]
pub(super) fn chunked_coop_trransaction(
&self
) -> Result<ChunkedCoopTransaction<'_>>
[src]
&self
) -> Result<ChunkedCoopTransaction<'_>>
Begin a ChunkedCoopTransaction. Must be called from the sync connection, see module doc for details.
pub(super) fn coop_transaction(
&self
) -> Result<UncheckedTransaction<'_>>
[src]
&self
) -> Result<UncheckedTransaction<'_>>
Begin a "coop" transaction. Must be called from the write connection, see module doc for details.
pub fn begin_transaction(&self) -> Result<PlacesTransaction<'_>>
[src]
Begin the "correct" transaction type for this connection.
- For Sync connections, begins a chunked coop transaction.
- for ReadWrite connections, begins a normal coop transaction
- for ReadOnly connections, begins an unchecked transaction.
Trait Implementations
Auto Trait Implementations
impl<'api> !RefUnwindSafe for SyncConn<'api>
impl<'api> Send for SyncConn<'api>
impl<'api> !Sync for SyncConn<'api>
impl<'api> Unpin for SyncConn<'api>
impl<'api> !UnwindSafe for SyncConn<'api>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,