Expand description
Response contains a code and message to be sent back to the client
Fields
code: u16
is_error: bool
action: Action
Implementations
Trait Implementations
sourceimpl From<AuthResult> for Response
impl From<AuthResult> for Response
sourcefn from(v: AuthResult) -> Response
fn from(v: AuthResult) -> Response
Converts to this type from the input type.
sourceimpl From<DataResult> for Response
impl From<DataResult> for Response
sourcefn from(v: DataResult) -> Response
fn from(v: DataResult) -> Response
Converts to this type from the input type.
sourceimpl From<HeloResult> for Response
impl From<HeloResult> for Response
sourcefn from(v: HeloResult) -> Response
fn from(v: HeloResult) -> Response
Converts to this type from the input type.
sourceimpl From<MailResult> for Response
impl From<MailResult> for Response
sourcefn from(v: MailResult) -> Response
fn from(v: MailResult) -> Response
Converts to this type from the input type.
sourceimpl From<RcptResult> for Response
impl From<RcptResult> for Response
sourcefn from(v: RcptResult) -> Response
fn from(v: RcptResult) -> Response
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more