pub struct WebExtStorageBridgedEngine { /* private fields */ }
Implementations§
Source§impl WebExtStorageBridgedEngine
impl WebExtStorageBridgedEngine
pub fn new(bridge_impl: Box<dyn Sync15BridgedEngine>) -> Self
pub fn last_sync(&self) -> Result<i64>
pub fn set_last_sync(&self, last_sync: i64) -> Result<()>
pub fn sync_id(&self) -> Result<Option<String>>
pub fn reset_sync_id(&self) -> Result<String>
pub fn ensure_current_sync_id(&self, sync_id: &str) -> Result<String>
pub fn prepare_for_sync(&self, client_data: &str) -> Result<()>
pub fn store_incoming(&self, incoming: Vec<String>) -> Result<()>
pub fn apply(&self) -> Result<Vec<String>>
pub fn set_uploaded( &self, server_modified_millis: i64, guids: Vec<SyncGuid>, ) -> Result<()>
pub fn sync_started(&self) -> Result<()>
pub fn sync_finished(&self) -> Result<()>
pub fn reset(&self) -> Result<()>
pub fn wipe(&self) -> Result<()>
Trait Implementations§
§impl<UT> LiftRef<UT> for WebExtStorageBridgedEngine
impl<UT> LiftRef<UT> for WebExtStorageBridgedEngine
type LiftType = Arc<WebExtStorageBridgedEngine>
§impl<UT> LowerError<UT> for WebExtStorageBridgedEngine
impl<UT> LowerError<UT> for WebExtStorageBridgedEngine
§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
§impl<UT> LowerReturn<UT> for WebExtStorageBridgedEngine
impl<UT> LowerReturn<UT> for WebExtStorageBridgedEngine
§type ReturnType = <Arc<WebExtStorageBridgedEngine> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<WebExtStorageBridgedEngine> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
§impl<UT> TypeId<UT> for WebExtStorageBridgedEngine
impl<UT> TypeId<UT> for WebExtStorageBridgedEngine
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for WebExtStorageBridgedEngine
impl !RefUnwindSafe for WebExtStorageBridgedEngine
impl Send for WebExtStorageBridgedEngine
impl Sync for WebExtStorageBridgedEngine
impl Unpin for WebExtStorageBridgedEngine
impl !UnwindSafe for WebExtStorageBridgedEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read more