pub struct MaildirContextBuilder {
pub account_config: Arc<AccountConfig>,
pub mdir_config: Arc<MaildirConfig>,
}
Expand description
The Maildir backend context builder.
Fields§
§account_config: Arc<AccountConfig>
The account configuration.
mdir_config: Arc<MaildirConfig>
The Maildir configuration.
Implementations§
Source§impl MaildirContextBuilder
impl MaildirContextBuilder
pub fn new( account_config: Arc<AccountConfig>, mdir_config: Arc<MaildirConfig>, ) -> Self
pub fn expanded_root_dir(&self) -> PathBuf
pub fn maildir(&self) -> Maildirs
Trait Implementations§
Source§impl BackendContextBuilder for MaildirContextBuilder
impl BackendContextBuilder for MaildirContextBuilder
Source§type Context = MaildirContextSync
type Context = MaildirContextSync
The type of the context being built by this builder.
fn configure<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = AnyResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn check_configuration(&self) -> AnyResult<()>
Source§fn check_up(&self) -> Option<BackendFeature<Self::Context, dyn CheckUp>>
fn check_up(&self) -> Option<BackendFeature<Self::Context, dyn CheckUp>>
Define the given backend feature.
Source§fn add_folder(&self) -> Option<BackendFeature<Self::Context, dyn AddFolder>>
fn add_folder(&self) -> Option<BackendFeature<Self::Context, dyn AddFolder>>
Define the given backend feature.
Source§fn list_folders(&self) -> Option<BackendFeature<Self::Context, dyn ListFolders>>
fn list_folders(&self) -> Option<BackendFeature<Self::Context, dyn ListFolders>>
Define the given backend feature.
Source§fn expunge_folder(
&self,
) -> Option<BackendFeature<Self::Context, dyn ExpungeFolder>>
fn expunge_folder( &self, ) -> Option<BackendFeature<Self::Context, dyn ExpungeFolder>>
Define the given backend feature.
Source§fn delete_folder(
&self,
) -> Option<BackendFeature<Self::Context, dyn DeleteFolder>>
fn delete_folder( &self, ) -> Option<BackendFeature<Self::Context, dyn DeleteFolder>>
Define the given backend feature.
Source§fn get_envelope(&self) -> Option<BackendFeature<Self::Context, dyn GetEnvelope>>
fn get_envelope(&self) -> Option<BackendFeature<Self::Context, dyn GetEnvelope>>
Define the given backend feature.
Source§fn list_envelopes(
&self,
) -> Option<BackendFeature<Self::Context, dyn ListEnvelopes>>
fn list_envelopes( &self, ) -> Option<BackendFeature<Self::Context, dyn ListEnvelopes>>
Define the given backend feature.
Source§fn thread_envelopes(
&self,
) -> Option<BackendFeature<Self::Context, dyn ThreadEnvelopes>>
fn thread_envelopes( &self, ) -> Option<BackendFeature<Self::Context, dyn ThreadEnvelopes>>
Define the given backend feature.
Source§fn watch_envelopes(
&self,
) -> Option<BackendFeature<Self::Context, dyn WatchEnvelopes>>
fn watch_envelopes( &self, ) -> Option<BackendFeature<Self::Context, dyn WatchEnvelopes>>
Define the given backend feature.
Source§fn add_flags(&self) -> Option<BackendFeature<Self::Context, dyn AddFlags>>
fn add_flags(&self) -> Option<BackendFeature<Self::Context, dyn AddFlags>>
Define the given backend feature.
Source§fn set_flags(&self) -> Option<BackendFeature<Self::Context, dyn SetFlags>>
fn set_flags(&self) -> Option<BackendFeature<Self::Context, dyn SetFlags>>
Define the given backend feature.
Source§fn remove_flags(&self) -> Option<BackendFeature<Self::Context, dyn RemoveFlags>>
fn remove_flags(&self) -> Option<BackendFeature<Self::Context, dyn RemoveFlags>>
Define the given backend feature.
Source§fn add_message(&self) -> Option<BackendFeature<Self::Context, dyn AddMessage>>
fn add_message(&self) -> Option<BackendFeature<Self::Context, dyn AddMessage>>
Define the given backend feature.
Source§fn peek_messages(
&self,
) -> Option<BackendFeature<Self::Context, dyn PeekMessages>>
fn peek_messages( &self, ) -> Option<BackendFeature<Self::Context, dyn PeekMessages>>
Define the given backend feature.
Source§fn get_messages(&self) -> Option<BackendFeature<Self::Context, dyn GetMessages>>
fn get_messages(&self) -> Option<BackendFeature<Self::Context, dyn GetMessages>>
Define the given backend feature.
Source§fn copy_messages(
&self,
) -> Option<BackendFeature<Self::Context, dyn CopyMessages>>
fn copy_messages( &self, ) -> Option<BackendFeature<Self::Context, dyn CopyMessages>>
Define the given backend feature.
Source§fn move_messages(
&self,
) -> Option<BackendFeature<Self::Context, dyn MoveMessages>>
fn move_messages( &self, ) -> Option<BackendFeature<Self::Context, dyn MoveMessages>>
Define the given backend feature.
Source§fn delete_messages(
&self,
) -> Option<BackendFeature<Self::Context, dyn DeleteMessages>>
fn delete_messages( &self, ) -> Option<BackendFeature<Self::Context, dyn DeleteMessages>>
Define the given backend feature.
Source§fn remove_messages(
&self,
) -> Option<BackendFeature<Self::Context, dyn RemoveMessages>>
fn remove_messages( &self, ) -> Option<BackendFeature<Self::Context, dyn RemoveMessages>>
Define the given backend feature.
Source§fn build<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = AnyResult<Self::Context>> + Send + 'async_trait>>where
Self: 'async_trait,
fn build<'async_trait>(
self,
) -> Pin<Box<dyn Future<Output = AnyResult<Self::Context>> + Send + 'async_trait>>where
Self: 'async_trait,
Build the final context used by the backend.
fn check<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = AnyResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn purge_folder(&self) -> Option<BackendFeature<Self::Context, dyn PurgeFolder>>
fn purge_folder(&self) -> Option<BackendFeature<Self::Context, dyn PurgeFolder>>
Define the given backend feature.
Source§fn send_message(&self) -> Option<BackendFeature<Self::Context, dyn SendMessage>>
fn send_message(&self) -> Option<BackendFeature<Self::Context, dyn SendMessage>>
Define the given backend feature.
fn try_to_sync_cache_builder(
&self,
account_config: &AccountConfig,
) -> Result<MaildirContextBuilder, Error>where
Self: SyncHash,
Source§impl Clone for MaildirContextBuilder
impl Clone for MaildirContextBuilder
Source§fn clone(&self) -> MaildirContextBuilder
fn clone(&self) -> MaildirContextBuilder
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 moreSource§impl Debug for MaildirContextBuilder
impl Debug for MaildirContextBuilder
Source§impl Default for MaildirContextBuilder
impl Default for MaildirContextBuilder
Source§fn default() -> MaildirContextBuilder
fn default() -> MaildirContextBuilder
Returns the “default value” for a type. Read more
Source§impl PartialEq for MaildirContextBuilder
impl PartialEq for MaildirContextBuilder
Source§impl SyncHash for MaildirContextBuilder
impl SyncHash for MaildirContextBuilder
fn sync_hash(&self, state: &mut DefaultHasher)
impl Eq for MaildirContextBuilder
impl StructuralPartialEq for MaildirContextBuilder
Auto Trait Implementations§
impl Freeze for MaildirContextBuilder
impl !RefUnwindSafe for MaildirContextBuilder
impl Send for MaildirContextBuilder
impl Sync for MaildirContextBuilder
impl Unpin for MaildirContextBuilder
impl !UnwindSafe for MaildirContextBuilder
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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