pub struct AddressesBridgedEngine(/* private fields */);Implementations§
Source§impl AddressesBridgedEngine
impl AddressesBridgedEngine
pub fn new(inner: Box<dyn SyncEngine + Send + Sync>) -> Self
pub fn last_sync(&self) -> Result<i64>
pub fn reset_last_sync(&self) -> 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 set_clients(&self, client_data: &str) -> Result<()>
pub fn sync_started(&self) -> Result<()>
pub fn store_incoming(&self, incoming: Vec<String>) -> Result<()>
pub fn apply(&self, server_modified_millis: i64) -> Result<Vec<String>>
pub fn set_uploaded( &self, server_modified_millis: i64, ids: Vec<String>, ) -> Result<()>
pub fn sync_finished(&self) -> Result<()>
pub fn reset(&self) -> Result<()>
pub fn wipe(&self) -> Result<()>
Trait Implementations§
§impl<UT> LiftRef<UT> for AddressesBridgedEngine
impl<UT> LiftRef<UT> for AddressesBridgedEngine
type LiftType = Arc<AddressesBridgedEngine>
§impl<UT> LowerError<UT> for AddressesBridgedEngine
impl<UT> LowerError<UT> for AddressesBridgedEngine
§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 AddressesBridgedEngine
impl<UT> LowerReturn<UT> for AddressesBridgedEngine
§type ReturnType = <Arc<AddressesBridgedEngine> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<AddressesBridgedEngine> 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 AddressesBridgedEngine
impl<UT> TypeId<UT> for AddressesBridgedEngine
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for AddressesBridgedEngine
impl !RefUnwindSafe for AddressesBridgedEngine
impl Send for AddressesBridgedEngine
impl Sync for AddressesBridgedEngine
impl Unpin for AddressesBridgedEngine
impl !UnwindSafe for AddressesBridgedEngine
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