#[repr(C)]pub struct C4ReplicatorParameters {
pub optionsDictFleece: C4Slice,
pub onStatusChanged: C4ReplicatorStatusChangedCallback,
pub onDocumentsEnded: C4ReplicatorDocumentsEndedCallback,
pub onBlobProgress: C4ReplicatorBlobProgressCallback,
pub propertyEncryptor: C4ReplicatorPropertyEncryptionCallback,
pub propertyDecryptor: C4ReplicatorPropertyDecryptionCallback,
pub callbackContext: *mut c_void,
pub socketFactory: *const C4SocketFactory,
pub collections: *mut C4ReplicationCollection,
pub collectionCount: usize,
}Expand description
Parameters describing a replication, used when creating a C4Replicator.
Fields§
§optionsDictFleece: C4Slice< Optional Fleece-encoded dictionary of optional parameters.
onStatusChanged: C4ReplicatorStatusChangedCallback< Callback to be invoked when replicator’s status changes.
onDocumentsEnded: C4ReplicatorDocumentsEndedCallback< Callback notifying status of individual documents
onBlobProgress: C4ReplicatorBlobProgressCallback< Callback notifying blob progress
propertyEncryptor: C4ReplicatorPropertyEncryptionCallback§propertyDecryptor: C4ReplicatorPropertyDecryptionCallback§callbackContext: *mut c_void< Value to be passed to the callbacks.
socketFactory: *const C4SocketFactory< Custom C4SocketFactory, if not NULL
collections: *mut C4ReplicationCollection§collectionCount: usizeTrait Implementations§
Source§impl Clone for C4ReplicatorParameters
impl Clone for C4ReplicatorParameters
Source§fn clone(&self) -> C4ReplicatorParameters
fn clone(&self) -> C4ReplicatorParameters
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 moreSource§impl Debug for C4ReplicatorParameters
impl Debug for C4ReplicatorParameters
impl Copy for C4ReplicatorParameters
Auto Trait Implementations§
impl Freeze for C4ReplicatorParameters
impl RefUnwindSafe for C4ReplicatorParameters
impl !Send for C4ReplicatorParameters
impl !Sync for C4ReplicatorParameters
impl Unpin for C4ReplicatorParameters
impl UnwindSafe for C4ReplicatorParameters
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