pub struct Context<T: Send> {
pub data: Option<T>,
pub macros: Macros,
pub reply: SmtpReply,
}Expand description
Callback context.
Fields§
§data: Option<T>The user data.
macros: MacrosThe defined macros.
reply: SmtpReplyThe custom SMTP reply.
Auto Trait Implementations§
impl<T> Freeze for Context<T>where
T: Freeze,
impl<T> RefUnwindSafe for Context<T>where
T: RefUnwindSafe,
impl<T> Send for Context<T>
impl<T> Sync for Context<T>where
T: Sync,
impl<T> Unpin for Context<T>where
T: Unpin,
impl<T> UnwindSafe for Context<T>where
T: UnwindSafe,
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