Struct email::backend::BackendBuilder
source · pub struct BackendBuilder<B: BackendContextBuilder> {
pub account_config: AccountConfig,
pub context_builder: B,
/* private fields */
}
Fields§
§account_config: AccountConfig
§context_builder: B
Implementations§
source§impl<C, B: BackendContextBuilder<Context = C>> BackendBuilder<B>
impl<C, B: BackendContextBuilder<Context = C>> BackendBuilder<B>
pub fn new(account_config: AccountConfig, context_builder: B) -> Self
pub fn set_add_folder( &mut self, feature: impl Fn(&C) -> Option<Box<dyn AddFolder>> + Send + Sync + 'static )
pub fn with_add_folder( self, feature: impl Fn(&C) -> Option<Box<dyn AddFolder>> + Send + Sync + 'static ) -> Self
pub fn set_list_folders( &mut self, feature: impl Fn(&C) -> Option<Box<dyn ListFolders>> + Send + Sync + 'static )
pub fn with_list_folders( self, feature: impl Fn(&C) -> Option<Box<dyn ListFolders>> + Send + Sync + 'static ) -> Self
pub fn set_expunge_folder( &mut self, feature: impl Fn(&C) -> Option<Box<dyn ExpungeFolder>> + Send + Sync + 'static )
pub fn with_expunge_folder( self, feature: impl Fn(&C) -> Option<Box<dyn ExpungeFolder>> + Send + Sync + 'static ) -> Self
pub fn set_purge_folder( &mut self, feature: impl Fn(&C) -> Option<Box<dyn PurgeFolder>> + Send + Sync + 'static )
pub fn with_purge_folder( self, feature: impl Fn(&C) -> Option<Box<dyn PurgeFolder>> + Send + Sync + 'static ) -> Self
pub fn set_delete_folder( &mut self, feature: impl Fn(&C) -> Option<Box<dyn DeleteFolder>> + Send + Sync + 'static )
pub fn with_delete_folder( self, feature: impl Fn(&C) -> Option<Box<dyn DeleteFolder>> + Send + Sync + 'static ) -> Self
pub fn set_list_envelopes( &mut self, feature: impl Fn(&C) -> Option<Box<dyn ListEnvelopes>> + Send + Sync + 'static )
pub fn with_list_envelopes( self, feature: impl Fn(&C) -> Option<Box<dyn ListEnvelopes>> + Send + Sync + 'static ) -> Self
pub fn set_watch_envelopes( &mut self, feature: impl Fn(&C) -> Option<Box<dyn WatchEnvelopes>> + Send + Sync + 'static )
pub fn with_watch_envelopes( self, feature: impl Fn(&C) -> Option<Box<dyn WatchEnvelopes>> + Send + Sync + 'static ) -> Self
pub fn set_get_envelope( &mut self, feature: impl Fn(&C) -> Option<Box<dyn GetEnvelope>> + Send + Sync + 'static )
pub fn with_get_envelope( self, feature: impl Fn(&C) -> Option<Box<dyn GetEnvelope>> + Send + Sync + 'static ) -> Self
pub fn set_add_flags( &mut self, feature: impl Fn(&C) -> Option<Box<dyn AddFlags>> + Send + Sync + 'static )
pub fn with_add_flags( self, feature: impl Fn(&C) -> Option<Box<dyn AddFlags>> + Send + Sync + 'static ) -> Self
pub fn set_set_flags( &mut self, feature: impl Fn(&C) -> Option<Box<dyn SetFlags>> + Send + Sync + 'static )
pub fn with_set_flags( self, feature: impl Fn(&C) -> Option<Box<dyn SetFlags>> + Send + Sync + 'static ) -> Self
pub fn set_remove_flags( &mut self, feature: impl Fn(&C) -> Option<Box<dyn RemoveFlags>> + Send + Sync + 'static )
pub fn with_remove_flags( self, feature: impl Fn(&C) -> Option<Box<dyn RemoveFlags>> + Send + Sync + 'static ) -> Self
pub fn set_add_raw_message( &mut self, feature: impl Fn(&C) -> Option<Box<dyn AddRawMessage>> + Send + Sync + 'static )
pub fn with_add_raw_message( self, feature: impl Fn(&C) -> Option<Box<dyn AddRawMessage>> + Send + Sync + 'static ) -> Self
pub fn set_add_raw_message_with_flags( &mut self, feature: impl Fn(&C) -> Option<Box<dyn AddRawMessageWithFlags>> + Send + Sync + 'static )
pub fn with_add_raw_message_with_flags( self, feature: impl Fn(&C) -> Option<Box<dyn AddRawMessageWithFlags>> + Send + Sync + 'static ) -> Self
pub fn set_get_messages( &mut self, feature: impl Fn(&C) -> Option<Box<dyn GetMessages>> + Send + Sync + 'static )
pub fn with_get_messages( self, feature: impl Fn(&C) -> Option<Box<dyn GetMessages>> + Send + Sync + 'static ) -> Self
pub fn set_peek_messages( &mut self, feature: impl Fn(&C) -> Option<Box<dyn PeekMessages>> + Send + Sync + 'static )
pub fn with_peek_messages( self, feature: impl Fn(&C) -> Option<Box<dyn PeekMessages>> + Send + Sync + 'static ) -> Self
pub fn set_copy_messages( &mut self, feature: impl Fn(&C) -> Option<Box<dyn CopyMessages>> + Send + Sync + 'static )
pub fn with_copy_messages( self, feature: impl Fn(&C) -> Option<Box<dyn CopyMessages>> + Send + Sync + 'static ) -> Self
pub fn set_move_messages( &mut self, feature: impl Fn(&C) -> Option<Box<dyn MoveMessages>> + Send + Sync + 'static )
pub fn with_move_messages( self, feature: impl Fn(&C) -> Option<Box<dyn MoveMessages>> + Send + Sync + 'static ) -> Self
pub fn set_delete_messages( &mut self, feature: impl Fn(&C) -> Option<Box<dyn DeleteMessages>> + Send + Sync + 'static )
pub fn with_delete_messages( self, feature: impl Fn(&C) -> Option<Box<dyn DeleteMessages>> + Send + Sync + 'static ) -> Self
pub fn set_send_raw_message( &mut self, feature: impl Fn(&C) -> Option<Box<dyn SendRawMessage>> + Send + Sync + 'static )
pub fn with_send_raw_message( self, feature: impl Fn(&C) -> Option<Box<dyn SendRawMessage>> + Send + Sync + 'static ) -> Self
pub async fn build(self) -> Result<Backend<C>>
Trait Implementations§
source§impl<B: BackendContextBuilder> Clone for BackendBuilder<B>
impl<B: BackendContextBuilder> Clone for BackendBuilder<B>
Auto Trait Implementations§
impl<B> !RefUnwindSafe for BackendBuilder<B>
impl<B> Send for BackendBuilder<B>
impl<B> Sync for BackendBuilder<B>
impl<B> Unpin for BackendBuilder<B>where
B: Unpin,
impl<B> !UnwindSafe for BackendBuilder<B>
Blanket Implementations§
§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
§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.
§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,
§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
§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
§impl<T> ConvUtil for T
impl<T> ConvUtil for T
§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.
§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
§type Iter<'a> = Once<&'a T>
where
T: 'a
type Iter<'a> = Once<&'a T> where T: 'a
An iterator over the items within this container, by reference.
§fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
Check whether an item is contained within this sequence.
§fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
Convert an item of the sequence into a [
MaybeRef
].§impl<Src> TryFrom<Src> for Src
impl<Src> TryFrom<Src> for Src
§impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
§impl<Src> ValueFrom<Src> for Src
impl<Src> ValueFrom<Src> for Src
§fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
§impl<Src, Dst> ValueInto<Dst> for Srcwhere
Dst: ValueFrom<Src>,
impl<Src, Dst> ValueInto<Dst> for Srcwhere
Dst: ValueFrom<Src>,
§fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.