[−][src]Struct places::bookmark_sync::store::Merger
Fields
store: &'a BookmarksStore<'a>remote_time: ServerTimestamplocal_time: Timestampexternal_transaction: booltelem: Option<&'a mut Engine>global_change_tracker: GlobalChangeCounterTrackerImplementations
impl<'a> Merger<'a>[src]
pub(crate) fn new(
store: &'a BookmarksStore<'_>,
remote_time: ServerTimestamp
) -> Self[src]
store: &'a BookmarksStore<'_>,
remote_time: ServerTimestamp
) -> Self
pub(crate) fn with_telemetry(
store: &'a BookmarksStore<'_>,
remote_time: ServerTimestamp,
telem: &'a mut Engine
) -> Self[src]
store: &'a BookmarksStore<'_>,
remote_time: ServerTimestamp,
telem: &'a mut Engine
) -> Self
pub(crate) fn set_external_transaction(&mut self, v: bool)[src]
Prevent (or re-enable, in principal) using begin_transaction in apply().
The assumption is that if you call this, someone higher up the call_stack is managing the transaction at that point.
pub(crate) fn merge(&mut self) -> Result<()>[src]
fn prepare(&self) -> Result<()>[src]
Prepares synced bookmarks for merging.
fn local_row_to_item(&self, row: &Row<'_>) -> Result<(Item, Option<Content>)>[src]
Creates a local tree item from a row in the localItems CTE.
fn remote_row_to_item(&self, row: &Row<'_>) -> Result<(Item, Option<Content>)>[src]
Creates a remote tree item from a row in moz_bookmarks_synced.
Trait Implementations
impl<'a> Store for Merger<'a>[src]
type Ok = ()
The type returned from a successful merge.
type Error = Error
The type returned in the event of a store error.
fn fetch_local_tree(&self) -> Result<Tree>[src]
Builds a fully rooted, consistent tree from all local items and tombstones.
fn fetch_remote_tree(&self) -> Result<Tree>[src]
Builds a fully rooted tree from all synced items and tombstones.
fn apply<'t>(&mut self, root: MergedRoot<'t>) -> Result<()>[src]
fn merge(&mut self) -> Result<Self::Ok, Self::Error>
fn merge_with_driver(
&mut self,
driver: &impl Driver,
signal: &impl AbortSignal
) -> Result<Self::Ok, Self::Error>
&mut self,
driver: &impl Driver,
signal: &impl AbortSignal
) -> Result<Self::Ok, Self::Error>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Merger<'a>
impl<'a> !Send for Merger<'a>
impl<'a> !Sync for Merger<'a>
impl<'a> Unpin for Merger<'a>
impl<'a> !UnwindSafe for Merger<'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>,