[−][src]Struct places::history_sync::store::HistoryStore
Fields
db: &'a PlacesDb
interruptee: &'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]
&self,
inbound: IncomingChangeset,
telem: &mut Engine
) -> Result<OutgoingChangeset>
fn do_sync_finished(
&self,
new_timestamp: ServerTimestamp,
records_synced: Vec<Guid>
) -> Result<()>
[src]
&self,
new_timestamp: ServerTimestamp,
records_synced: Vec<Guid>
) -> Result<()>
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]
impl<'a> Store for HistoryStore<'a>
[src]
fn collection_name(&self) -> Cow<'static, str>
[src]
fn apply_incoming(
&self,
inbound: Vec<IncomingChangeset>,
telem: &mut Engine
) -> Result<OutgoingChangeset>
[src]
&self,
inbound: Vec<IncomingChangeset>,
telem: &mut Engine
) -> Result<OutgoingChangeset>
fn sync_finished(
&self,
new_timestamp: ServerTimestamp,
records_synced: Vec<Guid>
) -> Result<()>
[src]
&self,
new_timestamp: ServerTimestamp,
records_synced: Vec<Guid>
) -> Result<()>
fn get_collection_requests(
&self,
server_timestamp: ServerTimestamp
) -> Result<Vec<CollectionRequest>>
[src]
&self,
server_timestamp: ServerTimestamp
) -> Result<Vec<CollectionRequest>>
fn get_sync_assoc(&self) -> Result<StoreSyncAssociation>
[src]
fn reset(&self, assoc: &StoreSyncAssociation) -> Result<()>
[src]
fn wipe(&self) -> Result<()>
[src]
fn prepare_for_sync(&self, _get_client_data: &dyn Fn()) -> Result<(), Error>
[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]
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>,