Struct vomit_sync::SyncOptions
source · [−]pub struct SyncOptions {
pub local: String,
pub remote: String,
pub user: String,
pub password: String,
pub reconcile: bool,
pub threads: u8,
}Expand description
A set of options to control the synchronization process
Fields
local: StringThe local maildir to sync to
remote: StringThe IMAPS URL to sync from
user: StringThe user for IMAP authentication
password: StringThe password for IMAP authentication
reconcile: boolForce reconciliation of state cache with disk/server (slow)
This happens automatically if a mismatch is detected, but can be
forced by setting this to true.
threads: u8The number of threads to use
Each thread will use it’s own IMAP session, so this must not be greater than the number of concurrent user sessions allowed by the IMAP server.
Trait Implementations
sourceimpl Clone for SyncOptions
impl Clone for SyncOptions
sourcefn clone(&self) -> SyncOptions
fn clone(&self) -> SyncOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for SyncOptions
impl Send for SyncOptions
impl Sync for SyncOptions
impl Unpin for SyncOptions
impl UnwindSafe for SyncOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more