[][src]Struct places::history_sync::store::HistoryStore

pub struct HistoryStore<'a> {
    pub db: &'a PlacesDb,
    interruptee: &'a SqlInterruptScope,
}

Fields

db: &'a PlacesDbinterruptee: &'a SqlInterruptScope

Implementations

impl<'a> HistoryStore<'a>[src]

pub fn new(db: &'a PlacesDb, interruptee: &'a SqlInterruptScope) -> Self[src]

fn put_meta(&self, key: &str, value: &dyn ToSql) -> Result<()>[src]

fn get_meta<T: FromSql>(&self, key: &str) -> Result<Option<T>>[src]

fn do_apply_incoming(
    &self,
    inbound: IncomingChangeset,
    telem: &mut Engine
) -> Result<OutgoingChangeset>
[src]

fn do_sync_finished(
    &self,
    new_timestamp: ServerTimestamp,
    records_synced: Vec<Guid>
) -> Result<()>
[src]

pub fn migrate_v1_global_state(db: &PlacesDb) -> Result<()>[src]

A utility we can kill by the end of 2019 ;) Or even mid-2019? Note that this has no self - it just takes a connection. This is to ease the migration process, because this needs to be executed before bookmarks sync, otherwise the shared, persisted global state may be written by bookmarks before we've had a chance to migrate declined over.

Trait Implementations

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

type Target = Connection

The resulting type after dereferencing.

impl<'a> Store for HistoryStore<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for HistoryStore<'a>

impl<'a> !Send for HistoryStore<'a>

impl<'a> !Sync for HistoryStore<'a>

impl<'a> Unpin for HistoryStore<'a>

impl<'a> !UnwindSafe for HistoryStore<'a>

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>,