pub struct Controllers<B> {
pub on_auth: Option<OnAuthController<B>>,
pub on_email: Option<OnEmailController<B>>,
pub on_reset: Option<OnResetController<B>>,
pub on_close: Option<OnCloseController<B>>,
pub on_mail_cmd: Option<OnMailCommandController<B>>,
pub on_rcpt_cmd: Option<OnRCPTCommandController<B>>,
pub on_unknown_cmd: Option<OnUnknownCommandController<B>>,
}
Expand description
§Controllers
This struct is responsible for holding the controllers that will be used by the SMTPServer.
Fields§
§on_auth: Option<OnAuthController<B>>
§on_auth controller
on_email: Option<OnEmailController<B>>
§on_email controller
on_reset: Option<OnResetController<B>>
§on_reset controller
on_close: Option<OnCloseController<B>>
§on_close controller
on_mail_cmd: Option<OnMailCommandController<B>>
§on_mail_cmd controller
on_rcpt_cmd: Option<OnRCPTCommandController<B>>
§on_rcpt_cmd controller
on_unknown_cmd: Option<OnUnknownCommandController<B>>
§on_unknown_cmd controller
Trait Implementations§
Source§impl<B> Clone for Controllers<B>
§Clone for Controllers
This implementation is responsible for cloning the Controllers struct.
impl<B> Clone for Controllers<B>
§Clone for Controllers
This implementation is responsible for cloning the Controllers struct.
Auto Trait Implementations§
impl<B> Freeze for Controllers<B>
impl<B> !RefUnwindSafe for Controllers<B>
impl<B> Send for Controllers<B>
impl<B> Sync for Controllers<B>
impl<B> Unpin for Controllers<B>
impl<B> !UnwindSafe for Controllers<B>
Blanket Implementations§
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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