[−][src]Struct webext_storage::sync::bridge::BridgedEngine
A bridged engine implements all the methods needed to make the
storage.sync
store work with Desktop's Sync implementation.
Conceptually, it's similar to sync15_traits::Store
, which we
should eventually rename and unify with this trait (#2841).
Fields
db: &'a StorageDb
Implementations
impl<'a> BridgedEngine<'a>
[src]
pub fn new(db: &'a StorageDb) -> Self
[src]
Creates a bridged engine for syncing.
fn do_reset(&self, tx: &Transaction<'_>) -> Result<()>
[src]
Trait Implementations
impl<'a> BridgedEngine for BridgedEngine<'a>
[src]
type Error = Error
The type returned for errors.
fn last_sync(&self) -> Result<i64>
[src]
fn set_last_sync(&self, last_sync_millis: i64) -> Result<()>
[src]
fn sync_id(&self) -> Result<Option<String>>
[src]
fn reset_sync_id(&self) -> Result<String>
[src]
fn ensure_current_sync_id(&self, sync_id: &str) -> Result<String>
[src]
fn sync_started(&self) -> Result<()>
[src]
fn store_incoming(&self, incoming_envelopes: &[IncomingEnvelope]) -> Result<()>
[src]
fn apply(&self) -> Result<ApplyResults>
[src]
fn set_uploaded(
&self,
_server_modified_millis: i64,
ids: &[SyncGuid]
) -> Result<()>
[src]
&self,
_server_modified_millis: i64,
ids: &[SyncGuid]
) -> Result<()>
fn sync_finished(&self) -> Result<()>
[src]
fn reset(&self) -> Result<()>
[src]
fn wipe(&self) -> Result<()>
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for BridgedEngine<'a>
impl<'a> !Send for BridgedEngine<'a>
impl<'a> !Sync for BridgedEngine<'a>
impl<'a> Unpin for BridgedEngine<'a>
impl<'a> !UnwindSafe for BridgedEngine<'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>,