pub struct SyncOptions { /* private fields */ }Expand description
Options controlling how PowerSync connects to a sync service.
Implementations§
Source§impl SyncOptions
impl SyncOptions
Sourcepub fn new(connector: impl BackendConnector + 'static) -> Self
pub fn new(connector: impl BackendConnector + 'static) -> Self
Creates new SyncOptions with default options given the BackendConnector.
Sourcepub fn set_include_default_streams(&mut self, include: bool)
pub fn set_include_default_streams(&mut self, include: bool)
Whether to sync streams that have auto_subscribe: true.
This is enabled by default.
Sourcepub fn with_retry_delay(&mut self, delay: Duration)
pub fn with_retry_delay(&mut self, delay: Duration)
Configures the delay after a failed sync iteration (the default is 5 seconds).
Trait Implementations§
Source§impl Clone for SyncOptions
impl Clone for SyncOptions
Source§fn clone(&self) -> SyncOptions
fn clone(&self) -> SyncOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SyncOptions
impl !RefUnwindSafe for SyncOptions
impl Send for SyncOptions
impl Sync for SyncOptions
impl Unpin for SyncOptions
impl !UnwindSafe for SyncOptions
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