Struct email::notmuch::NotmuchContextBuilder
source · pub struct NotmuchContextBuilder {
pub account_config: Arc<AccountConfig>,
pub notmuch_config: Arc<NotmuchConfig>,
}
Expand description
The Notmuch context builder.
Fields§
§account_config: Arc<AccountConfig>
The account configuration.
notmuch_config: Arc<NotmuchConfig>
The Notmuch configuration.
Implementations§
source§impl NotmuchContextBuilder
impl NotmuchContextBuilder
pub fn new( account_config: Arc<AccountConfig>, notmuch_config: Arc<NotmuchConfig> ) -> Self
Trait Implementations§
source§impl BackendContextBuilder for NotmuchContextBuilder
impl BackendContextBuilder for NotmuchContextBuilder
§type Context = NotmuchContextSync
type Context = NotmuchContextSync
The type of the context being built by this builder.
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 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 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.
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 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 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 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 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 NotmuchContextBuilder
impl Clone for NotmuchContextBuilder
source§fn clone(&self) -> NotmuchContextBuilder
fn clone(&self) -> NotmuchContextBuilder
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 NotmuchContextBuilder
impl Debug for NotmuchContextBuilder
source§impl Default for NotmuchContextBuilder
impl Default for NotmuchContextBuilder
source§fn default() -> NotmuchContextBuilder
fn default() -> NotmuchContextBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for NotmuchContextBuilder
impl PartialEq for NotmuchContextBuilder
source§fn eq(&self, other: &NotmuchContextBuilder) -> bool
fn eq(&self, other: &NotmuchContextBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SyncHash for NotmuchContextBuilder
impl SyncHash for NotmuchContextBuilder
fn sync_hash(&self, state: &mut DefaultHasher)
impl Eq for NotmuchContextBuilder
impl StructuralPartialEq for NotmuchContextBuilder
Auto Trait Implementations§
impl Freeze for NotmuchContextBuilder
impl !RefUnwindSafe for NotmuchContextBuilder
impl Send for NotmuchContextBuilder
impl Sync for NotmuchContextBuilder
impl Unpin for NotmuchContextBuilder
impl !UnwindSafe for NotmuchContextBuilder
Blanket Implementations§
source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.
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> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.