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: String

The local maildir to sync to

remote: String

The IMAPS URL to sync from

user: String

The user for IMAP authentication

password: String

The password for IMAP authentication

reconcile: bool

Force 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: u8

The 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.