pub struct SyncPoolContext<L: BackendContext, R: BackendContext> {Show 14 fields
pub left_cache: Backend<MaildirContextSync>,
pub left: Backend<L>,
pub right_cache: Backend<MaildirContextSync>,
pub right: Backend<R>,
pub left_folder_permissions: FolderSyncPermissions,
pub left_flag_permissions: FlagSyncPermissions,
pub left_message_permissions: MessageSyncPermissions,
pub right_folder_permissions: FolderSyncPermissions,
pub right_flag_permissions: FlagSyncPermissions,
pub right_message_permissions: MessageSyncPermissions,
pub folder_filters: FolderSyncStrategy,
pub envelope_filters: EnvelopeSyncFilters,
pub handler: Option<Arc<SyncEventHandler>>,
pub dry_run: bool,
}Fields§
§left_cache: Backend<MaildirContextSync>§left: Backend<L>§right_cache: Backend<MaildirContextSync>§right: Backend<R>§left_folder_permissions: FolderSyncPermissions§left_flag_permissions: FlagSyncPermissions§left_message_permissions: MessageSyncPermissions§right_folder_permissions: FolderSyncPermissions§right_flag_permissions: FlagSyncPermissions§right_message_permissions: MessageSyncPermissions§folder_filters: FolderSyncStrategy§envelope_filters: EnvelopeSyncFilters§handler: Option<Arc<SyncEventHandler>>§dry_run: boolImplementations§
Source§impl<L: BackendContext, R: BackendContext> SyncPoolContext<L, R>
impl<L: BackendContext, R: BackendContext> SyncPoolContext<L, R>
pub fn apply_folder_permissions(&self, patch: &mut FolderSyncPatches)
pub fn apply_flag_and_message_permissions( &self, patch: &mut BTreeSet<EmailSyncHunk>, )
Auto Trait Implementations§
impl<L, R> Freeze for SyncPoolContext<L, R>
impl<L, R> !RefUnwindSafe for SyncPoolContext<L, R>
impl<L, R> Send for SyncPoolContext<L, R>
impl<L, R> Sync for SyncPoolContext<L, R>
impl<L, R> Unpin for SyncPoolContext<L, R>
impl<L, R> !UnwindSafe for SyncPoolContext<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> 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