Struct SendmailContextBuilder

Source
pub struct SendmailContextBuilder {
    pub account_config: Arc<AccountConfig>,
    pub sendmail_config: Arc<SendmailConfig>,
}

Fields§

§account_config: Arc<AccountConfig>

The account configuration.

§sendmail_config: Arc<SendmailConfig>

The sendmail configuration.

Implementations§

Source§

impl SendmailContextBuilder

Source

pub fn new( account_config: Arc<AccountConfig>, sendmail_config: Arc<SendmailConfig>, ) -> Self

Trait Implementations§

Source§

impl BackendContextBuilder for SendmailContextBuilder

Source§

fn build<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = AnyResult<Self::Context>> + Send + 'async_trait>>
where Self: 'async_trait,

Build an SENDMAIL sync session.

The SENDMAIL session is created at this moment. If the session cannot be created using the OAuth 2.0 authentication, the access token is refreshed first then a new session is created.

Source§

type Context = SendmailContext

The type of the context being built by this builder.
Source§

fn check_up(&self) -> Option<BackendFeature<Self::Context, dyn CheckUp>>

Define the given backend feature.
Source§

fn send_message(&self) -> Option<BackendFeature<Self::Context, dyn SendMessage>>

Define the given backend feature.
Source§

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 check_configuration(&self) -> AnyResult<()>

Source§

fn configure<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = AnyResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

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>>

Define the given backend feature.
Source§

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>>

Define the given backend feature.
Source§

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>>

Define the given backend feature.
Source§

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>>

Define the given backend feature.
Source§

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>>

Define the given backend feature.
Source§

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>>

Define the given backend feature.
Source§

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>>

Define the given backend feature.
Source§

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>>

Define the given backend feature.
Source§

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>>

Define the given backend feature.
Source§

fn remove_messages( &self, ) -> Option<BackendFeature<Self::Context, dyn RemoveMessages>>

Define the given backend feature.
Source§

impl Clone for SendmailContextBuilder

Source§

fn clone(&self) -> SendmailContextBuilder

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 Debug for SendmailContextBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SendmailContextBuilder

Source§

fn default() -> SendmailContextBuilder

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

impl PartialEq for SendmailContextBuilder

Source§

fn eq(&self, other: &SendmailContextBuilder) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for SendmailContextBuilder

Source§

impl StructuralPartialEq for SendmailContextBuilder

Auto Trait Implementations§

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
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
Source§

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

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

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.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

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

Source§

type NoneType = T

Source§

fn null_value() -> T

The none-equivalent value.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

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

Initializes a with the given initializer. Read more
Source§

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

Dereferences the given pointer. Read more
Source§

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

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

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

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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

The item yielded by the iterator.
Source§

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

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

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

Iterate over the elements of the container.
Source§

fn contains(&self, val: &T) -> bool
where T: PartialEq,

Check whether an item is contained within this sequence.
Source§

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,

Source§

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
Source§

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

Source§

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.
Source§

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

Source§

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.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T

Source§

impl<T> MaybeSync for T

Source§

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