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>

source

pub fn new(account_config: AccountConfig, context_builder: B) -> Self

source

pub fn set_add_folder( &mut self, feature: impl Fn(&C) -> Option<Box<dyn AddFolder>> + Send + Sync + 'static )

source

pub fn with_add_folder( self, feature: impl Fn(&C) -> Option<Box<dyn AddFolder>> + Send + Sync + 'static ) -> Self

source

pub fn set_list_folders( &mut self, feature: impl Fn(&C) -> Option<Box<dyn ListFolders>> + Send + Sync + 'static )

source

pub fn with_list_folders( self, feature: impl Fn(&C) -> Option<Box<dyn ListFolders>> + Send + Sync + 'static ) -> Self

source

pub fn set_expunge_folder( &mut self, feature: impl Fn(&C) -> Option<Box<dyn ExpungeFolder>> + Send + Sync + 'static )

source

pub fn with_expunge_folder( self, feature: impl Fn(&C) -> Option<Box<dyn ExpungeFolder>> + Send + Sync + 'static ) -> Self

source

pub fn set_purge_folder( &mut self, feature: impl Fn(&C) -> Option<Box<dyn PurgeFolder>> + Send + Sync + 'static )

source

pub fn with_purge_folder( self, feature: impl Fn(&C) -> Option<Box<dyn PurgeFolder>> + Send + Sync + 'static ) -> Self

source

pub fn set_delete_folder( &mut self, feature: impl Fn(&C) -> Option<Box<dyn DeleteFolder>> + Send + Sync + 'static )

source

pub fn with_delete_folder( self, feature: impl Fn(&C) -> Option<Box<dyn DeleteFolder>> + Send + Sync + 'static ) -> Self

source

pub fn set_list_envelopes( &mut self, feature: impl Fn(&C) -> Option<Box<dyn ListEnvelopes>> + Send + Sync + 'static )

source

pub fn with_list_envelopes( self, feature: impl Fn(&C) -> Option<Box<dyn ListEnvelopes>> + Send + Sync + 'static ) -> Self

source

pub fn set_watch_envelopes( &mut self, feature: impl Fn(&C) -> Option<Box<dyn WatchEnvelopes>> + Send + Sync + 'static )

source

pub fn with_watch_envelopes( self, feature: impl Fn(&C) -> Option<Box<dyn WatchEnvelopes>> + Send + Sync + 'static ) -> Self

source

pub fn set_get_envelope( &mut self, feature: impl Fn(&C) -> Option<Box<dyn GetEnvelope>> + Send + Sync + 'static )

source

pub fn with_get_envelope( self, feature: impl Fn(&C) -> Option<Box<dyn GetEnvelope>> + Send + Sync + 'static ) -> Self

source

pub fn set_add_flags( &mut self, feature: impl Fn(&C) -> Option<Box<dyn AddFlags>> + Send + Sync + 'static )

source

pub fn with_add_flags( self, feature: impl Fn(&C) -> Option<Box<dyn AddFlags>> + Send + Sync + 'static ) -> Self

source

pub fn set_set_flags( &mut self, feature: impl Fn(&C) -> Option<Box<dyn SetFlags>> + Send + Sync + 'static )

source

pub fn with_set_flags( self, feature: impl Fn(&C) -> Option<Box<dyn SetFlags>> + Send + Sync + 'static ) -> Self

source

pub fn set_remove_flags( &mut self, feature: impl Fn(&C) -> Option<Box<dyn RemoveFlags>> + Send + Sync + 'static )

source

pub fn with_remove_flags( self, feature: impl Fn(&C) -> Option<Box<dyn RemoveFlags>> + Send + Sync + 'static ) -> Self

source

pub fn set_add_raw_message( &mut self, feature: impl Fn(&C) -> Option<Box<dyn AddRawMessage>> + Send + Sync + 'static )

source

pub fn with_add_raw_message( self, feature: impl Fn(&C) -> Option<Box<dyn AddRawMessage>> + Send + Sync + 'static ) -> Self

source

pub fn set_add_raw_message_with_flags( &mut self, feature: impl Fn(&C) -> Option<Box<dyn AddRawMessageWithFlags>> + Send + Sync + 'static )

source

pub fn with_add_raw_message_with_flags( self, feature: impl Fn(&C) -> Option<Box<dyn AddRawMessageWithFlags>> + Send + Sync + 'static ) -> Self

source

pub fn set_get_messages( &mut self, feature: impl Fn(&C) -> Option<Box<dyn GetMessages>> + Send + Sync + 'static )

source

pub fn with_get_messages( self, feature: impl Fn(&C) -> Option<Box<dyn GetMessages>> + Send + Sync + 'static ) -> Self

source

pub fn set_peek_messages( &mut self, feature: impl Fn(&C) -> Option<Box<dyn PeekMessages>> + Send + Sync + 'static )

source

pub fn with_peek_messages( self, feature: impl Fn(&C) -> Option<Box<dyn PeekMessages>> + Send + Sync + 'static ) -> Self

source

pub fn set_copy_messages( &mut self, feature: impl Fn(&C) -> Option<Box<dyn CopyMessages>> + Send + Sync + 'static )

source

pub fn with_copy_messages( self, feature: impl Fn(&C) -> Option<Box<dyn CopyMessages>> + Send + Sync + 'static ) -> Self

source

pub fn set_move_messages( &mut self, feature: impl Fn(&C) -> Option<Box<dyn MoveMessages>> + Send + Sync + 'static )

source

pub fn with_move_messages( self, feature: impl Fn(&C) -> Option<Box<dyn MoveMessages>> + Send + Sync + 'static ) -> Self

source

pub fn set_delete_messages( &mut self, feature: impl Fn(&C) -> Option<Box<dyn DeleteMessages>> + Send + Sync + 'static )

source

pub fn with_delete_messages( self, feature: impl Fn(&C) -> Option<Box<dyn DeleteMessages>> + Send + Sync + 'static ) -> Self

source

pub fn set_send_raw_message( &mut self, feature: impl Fn(&C) -> Option<Box<dyn SendRawMessage>> + Send + Sync + 'static )

source

pub fn with_send_raw_message( self, feature: impl Fn(&C) -> Option<Box<dyn SendRawMessage>> + Send + Sync + 'static ) -> Self

source

pub async fn build(self) -> Result<Backend<C>>

Trait Implementations§

source§

impl<B: BackendContextBuilder> Clone for BackendBuilder<B>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for BackendBuilder<()>

source§

fn default() -> Self

Returns the “default value” for a type. Read more

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§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src
where Scheme: ApproxScheme,

§

type Err = NoError

The error type produced by a failed conversion.
§

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 Src
where Dst: ApproxFrom<Src, Scheme>, Scheme: ApproxScheme,

§

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.
§

fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>

Convert the subject into an approximately equivalent representation.
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T, Dst> ConvAsUtil<Dst> for T

§

fn approx(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject with the default scheme.
§

fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject with a specific scheme.
§

impl<T> ConvUtil for T

§

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,

Approximate the subject to a given type with a specific scheme.
§

fn into_as<Dst>(self) -> Dst
where Self: Sized + Into<Dst>,

Convert the subject to a given type.
§

fn try_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + TryInto<Dst>,

Attempt to convert the subject to a given type.
§

fn value_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ValueInto<Dst>,

Attempt a value conversion of the subject to a given type.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> NoneValue for T
where T: Default,

§

type NoneType = T

§

fn null_value() -> T

The none-equivalent value.
§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<'p, T> Seq<'p, T> for T
where T: Clone,

§

type Item<'a> = &'a T where T: 'a

The item yielded by the iterator.
§

type Iter<'a> = Once<&'a T> where T: 'a

An iterator over the items within this container, by reference.
§

fn seq_iter(&self) -> <T as Seq<'p, T>>::Iter<'_>

Iterate over the elements of the container.
§

fn contains(&self, val: &T) -> bool
where 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,

Convert an item of the sequence into a [MaybeRef].
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<Src> TryFrom<Src> for Src

§

type Err = NoError

The error type produced by a failed conversion.
§

fn try_from(src: Src) -> Result<Src, <Src as TryFrom<Src>>::Err>

Convert the given value into the subject type.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<Src, Dst> TryInto<Dst> for Src
where Dst: TryFrom<Src>,

§

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.
§

fn try_into(self) -> Result<Dst, <Src as TryInto<Dst>>::Err>

Convert the subject into the destination type.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<Src> ValueFrom<Src> for Src

§

type Err = NoError

The error type produced by a failed conversion.
§

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 Src
where Dst: ValueFrom<Src>,

§

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.
§

fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>

Convert the subject into an exactly equivalent representation.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> MaybeSync for T

§

impl<'p, T> OrderedSeq<'p, T> for T
where T: Clone,