pub enum CodecControl {
Response(Vec<u8>),
Parser(Box<dyn Parser + Sync + Send>),
StartTls,
Shutdown,
}Expand description
Represents the instructions for the client side of the stream.
Variants§
Response(Vec<u8>)
Write an SMTP response
Parser(Box<dyn Parser + Sync + Send>)
Switch parser
StartTls
Start TLS encryption
Shutdown
Shut the stream down
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodecControl
impl !RefUnwindSafe for CodecControl
impl Send for CodecControl
impl Sync for CodecControl
impl Unpin for CodecControl
impl !UnwindSafe for CodecControl
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