[−][src]Attribute Macro milter_callback::on_unknown
#[on_unknown]
Generates a callback function of type UnknownCallback
that delegates to
the annotated function.
As its sole argument on_unknown
takes an identifier to be used as the name
of the generated function.
The on_unknown
callback is called for unknown SMTP commands. The signature
of the annotated function must be as specified below.
Arguments:
Return type:
Status
– the response status
Examples
use milter::{Context, Status}; #[on_unknown(unknown_callback)] fn handle_unknown(context: Context<MyData>, smtp_cmd: &str) -> Status { Status::Continue }