Struct Configuration

Source
pub struct Configuration { /* private fields */ }
Expand description

Service builder configuration passed to MailSetup

Implementations§

Source§

impl Configuration

Source

pub fn into_service(self, driver: impl Drive + Sync + Send + 'static) -> Service

Trait Implementations§

Source§

impl AcceptsDispatch for Configuration

Source§

fn add_first_dispatch<T: MailDispatch + Send + Sync + 'static>( &mut self, dispatch: T, )

Source§

fn add_last_dispatch<T: MailDispatch + Send + Sync + 'static>( &mut self, dispatch: T, )

Source§

fn wrap_dispatches<T: MailDispatch + Send + Sync + 'static, F: FnOnce(Box<dyn MailDispatch + Send + Sync>) -> T>( &mut self, wrap: F, )

Source§

impl AcceptsGuard for Configuration

Source§

fn add_first_guard<T: MailGuard + Send + Sync + 'static>(&mut self, guard: T)

Source§

fn add_last_guard<T: MailGuard + Send + Sync + 'static>(&mut self, guard: T)

Source§

fn wrap_guards<T: MailGuard + Send + Sync + 'static, F: FnOnce(Box<dyn MailGuard + Send + Sync>) -> T>( &mut self, wrap: F, )

Source§

impl AcceptsInterpretter for Configuration

Source§

fn add_first_interpretter<T: Interpret + Send + Sync + 'static>( &mut self, item: T, )

Source§

fn add_last_interpretter<T: Interpret + Send + Sync + 'static>( &mut self, item: T, )

Source§

fn wrap_interpretter<T: Interpret + Send + Sync + 'static, F: FnOnce(Box<dyn Interpret + Send + Sync>) -> T>( &mut self, wrap: F, )

Source§

impl AcceptsSessionService for Configuration

Source§

fn add_first_session_service<T: SessionService + Send + Sync + 'static>( &mut self, session: T, )

Source§

fn add_last_session_service<T: SessionService + Send + Sync + 'static>( &mut self, session: T, )

Source§

fn wrap_session_service<T: SessionService + Send + Sync + 'static, F: FnOnce(Box<dyn SessionService + Send + Sync>) -> T>( &mut self, wrap: F, )

Source§

impl Debug for Configuration

Source§

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

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

impl Default for Configuration

Source§

fn default() -> Self

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

impl HasId for Configuration

Source§

fn id(&self) -> &str

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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