[][src]Struct places::api::places_api::SyncConn

pub struct SyncConn<'api> {
    db: PlacesDb,
    flag: &'api AtomicBool,
}

Wrapper around PlacesDb that automatically sets a flag (sync_conn_active) to false when finished

Fields

db: PlacesDbflag: &'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]

Begin a ChunkedCoopTransaction. Must be called from the sync connection, see module doc for details.

pub(super) fn coop_transaction(
    &self
) -> Result<UncheckedTransaction<'_>>
[src]

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

impl<'a> Deref for SyncConn<'a>[src]

type Target = PlacesDb

The resulting type after dereferencing.

impl<'a> Drop for SyncConn<'a>[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,