Enum smtp_server::Decision
source · [−]pub enum Decision<T> {
Accept {
reply: Reply<String>,
res: T,
},
Reject {
reply: Reply<String>,
},
Kill {
reply: Option<Reply<String>>,
res: Result<(), Error>,
},
}
Variants
Accept
Reject
Kill
Trait Implementations
sourceimpl<T> From<SerializableDecision<T>> for Decision<T>
impl<T> From<SerializableDecision<T>> for Decision<T>
sourcefn from(d: SerializableDecision<T>) -> Decision<T>
fn from(d: SerializableDecision<T>) -> Decision<T>
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for Decision<T> where
T: RefUnwindSafe,
impl<T> Send for Decision<T> where
T: Send,
impl<T> Sync for Decision<T> where
T: Sync,
impl<T> Unpin for Decision<T> where
T: Unpin,
impl<T> UnwindSafe for Decision<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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