macro_rules! SMTPServer {
() => { ... };
( $( PORT $port:literal )? $( EXTENSIONS { $($ext:tt) * } )? $( HANDLERS { $($state:tt $req:expr) * } )? ) => { ... };
}Expand description
A generator for an SMTP Server
ยงExamples
SMTPServer! {
PORT 1025
EXTENSIONS { STARTTLS }
HANDLERS {
CONNECTED |context| {
// ...
}
DATA |context| {
// ...
}
}
}