pub struct SyncBuilder<L: BackendContextBuilder + SyncHash, R: BackendContextBuilder + SyncHash> { /* private fields */ }
Expand description
The synchronization builder.
Implementations§
Source§impl<L, R> SyncBuilder<L, R>
impl<L, R> SyncBuilder<L, R>
Sourcepub fn new(
left_builder: BackendBuilder<L>,
right_builder: BackendBuilder<R>,
) -> Self
pub fn new( left_builder: BackendBuilder<L>, right_builder: BackendBuilder<R>, ) -> Self
Create a new synchronization builder using the two given backend builders.
pub fn set_some_cache_dir(&mut self, dir: Option<impl Into<PathBuf>>)
pub fn set_cache_dir(&mut self, dir: impl Into<PathBuf>)
pub fn with_some_cache_dir(self, dir: Option<impl Into<PathBuf>>) -> Self
pub fn with_cache_dir(self, dir: impl Into<PathBuf>) -> Self
pub fn set_some_handler<F: Future<Output = Result<()>> + Send + 'static>( &mut self, handler: Option<impl Fn(SyncEvent) -> F + Send + Sync + 'static>, )
pub fn set_handler<F: Future<Output = Result<()>> + Send + 'static>( &mut self, handler: impl Fn(SyncEvent) -> F + Send + Sync + 'static, )
pub fn with_some_handler<F: Future<Output = Result<()>> + Send + 'static>( self, handler: Option<impl Fn(SyncEvent) -> F + Send + Sync + 'static>, ) -> Self
pub fn with_handler<F: Future<Output = Result<()>> + Send + 'static>( self, handler: impl Fn(SyncEvent) -> F + Send + Sync + 'static, ) -> Self
pub fn set_some_dry_run(&mut self, dry_run: Option<bool>)
pub fn set_dry_run(&mut self, dry_run: bool)
pub fn with_some_dry_run(self, dry_run: Option<bool>) -> Self
pub fn with_dry_run(self, dry_run: bool) -> Self
pub fn get_dry_run(&self) -> bool
pub fn set_some_folder_filters( &mut self, f: Option<impl Into<FolderSyncStrategy>>, )
pub fn set_folder_filters(&mut self, f: impl Into<FolderSyncStrategy>)
pub fn with_some_folder_filters( self, f: Option<impl Into<FolderSyncStrategy>>, ) -> Self
pub fn with_folder_filters(self, f: impl Into<FolderSyncStrategy>) -> Self
pub fn set_some_left_folder_permissions( &mut self, p: Option<impl Into<FolderSyncPermissions>>, )
pub fn set_left_folder_permissions( &mut self, p: impl Into<FolderSyncPermissions>, )
pub fn with_some_left_folder_permissions( self, p: Option<impl Into<FolderSyncPermissions>>, ) -> Self
pub fn with_left_folder_permissions( self, p: impl Into<FolderSyncPermissions>, ) -> Self
pub fn set_some_right_folder_permissions( &mut self, p: Option<impl Into<FolderSyncPermissions>>, )
pub fn set_right_folder_permissions( &mut self, p: impl Into<FolderSyncPermissions>, )
pub fn with_some_right_folder_permissions( self, p: Option<impl Into<FolderSyncPermissions>>, ) -> Self
pub fn with_right_folder_permissions( self, p: impl Into<FolderSyncPermissions>, ) -> Self
pub fn set_some_envelope_filters( &mut self, f: Option<impl Into<EnvelopeSyncFilters>>, )
pub fn set_envelope_filters(&mut self, f: impl Into<EnvelopeSyncFilters>)
pub fn with_some_envelope_filters( self, f: Option<impl Into<EnvelopeSyncFilters>>, ) -> Self
pub fn with_envelope_filters(self, f: impl Into<EnvelopeSyncFilters>) -> Self
pub fn set_some_left_flag_permissions( &mut self, p: Option<impl Into<FlagSyncPermissions>>, )
pub fn set_left_flag_permissions(&mut self, p: impl Into<FlagSyncPermissions>)
pub fn with_some_left_flag_permissions( self, p: Option<impl Into<FlagSyncPermissions>>, ) -> Self
pub fn with_left_flag_permissions( self, p: impl Into<FlagSyncPermissions>, ) -> Self
pub fn set_some_right_flag_permissions( &mut self, p: Option<impl Into<FlagSyncPermissions>>, )
pub fn set_right_flag_permissions(&mut self, p: impl Into<FlagSyncPermissions>)
pub fn with_some_right_flag_permissions( self, p: Option<impl Into<FlagSyncPermissions>>, ) -> Self
pub fn with_right_flag_permissions( self, p: impl Into<FlagSyncPermissions>, ) -> Self
pub fn set_some_left_message_permissions( &mut self, p: Option<impl Into<MessageSyncPermissions>>, )
pub fn set_left_message_permissions( &mut self, p: impl Into<MessageSyncPermissions>, )
pub fn with_some_left_message_permissions( self, p: Option<impl Into<MessageSyncPermissions>>, ) -> Self
pub fn with_left_message_permissions( self, p: impl Into<MessageSyncPermissions>, ) -> Self
pub fn set_some_right_message_permissions( &mut self, p: Option<impl Into<MessageSyncPermissions>>, )
pub fn set_right_message_permissions( &mut self, p: impl Into<MessageSyncPermissions>, )
pub fn with_some_right_message_permissions( self, p: Option<impl Into<MessageSyncPermissions>>, ) -> Self
pub fn with_right_message_permissions( self, p: impl Into<MessageSyncPermissions>, ) -> Self
pub fn find_default_cache_dir(&self) -> Option<PathBuf>
pub fn get_cache_dir(&self) -> Result<PathBuf>
pub fn get_left_cache_builder( &self, ) -> Result<BackendBuilder<MaildirContextBuilder>>
pub fn get_right_cache_builder( &self, ) -> Result<BackendBuilder<MaildirContextBuilder>>
pub async fn sync(self) -> Result<SyncReport>
Trait Implementations§
Source§impl<L: Clone + BackendContextBuilder + SyncHash, R: Clone + BackendContextBuilder + SyncHash> Clone for SyncBuilder<L, R>
impl<L: Clone + BackendContextBuilder + SyncHash, R: Clone + BackendContextBuilder + SyncHash> Clone for SyncBuilder<L, R>
Source§fn clone(&self) -> SyncBuilder<L, R>
fn clone(&self) -> SyncBuilder<L, R>
Returns a copy 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<L, R> Freeze for SyncBuilder<L, R>
impl<L, R> !RefUnwindSafe for SyncBuilder<L, R>
impl<L, R> Send for SyncBuilder<L, R>
impl<L, R> Sync for SyncBuilder<L, R>
impl<L, R> Unpin for SyncBuilder<L, R>
impl<L, R> !UnwindSafe for SyncBuilder<L, R>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more