pub struct SyncManager { /* private fields */ }
Implementations§
Source§impl SyncManager
impl SyncManager
pub fn new() -> Self
pub fn wipe(&self, engine_name: &str) -> Result<()>
pub fn reset(&self, engine_name: &str) -> Result<()>
pub fn reset_all(&self) -> Result<()>
Sourcepub fn disconnect(&self)
pub fn disconnect(&self)
Disconnect engines from sync, deleting/resetting the sync-related data
Sourcepub fn sync(&self, params: SyncParams) -> Result<SyncResult>
pub fn sync(&self, params: SyncParams) -> Result<SyncResult>
Perform a sync. See SyncParams and SyncResult for details on how this works
pub fn get_available_engines(&self) -> Vec<String>
Trait Implementations§
Source§impl Default for SyncManager
impl Default for SyncManager
Source§fn default() -> SyncManager
fn default() -> SyncManager
Returns the “default value” for a type. Read more
§impl<UT> LiftRef<UT> for SyncManager
impl<UT> LiftRef<UT> for SyncManager
type LiftType = Arc<SyncManager>
§impl<UT> LowerError<UT> for SyncManager
impl<UT> LowerError<UT> for SyncManager
§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 SyncManager
impl<UT> LowerReturn<UT> for SyncManager
§type ReturnType = <Arc<SyncManager> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<SyncManager> 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 SyncManager
impl<UT> TypeId<UT> for SyncManager
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl !Freeze for SyncManager
impl !RefUnwindSafe for SyncManager
impl Send for SyncManager
impl Sync for SyncManager
impl Unpin for SyncManager
impl !UnwindSafe for SyncManager
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