Enum smtp_server_types::Decision
source · [−]pub enum Decision<T> {
Accept {
reply: Reply,
res: T,
},
Reject {
reply: Reply,
},
Kill {
reply: Option<Reply>,
res: Result<()>,
},
}
Variants
Accept
Reject
Fields
reply: Reply
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