Enum vsmtp_rule_engine::Directive
pub enum Directive {
Rule {
name: String,
pointer: FnPtr,
},
Action {
name: String,
pointer: FnPtr,
},
Delegation {
name: String,
pointer: FnPtr,
service: Arc<Smtp>,
},
}Expand description
Variants§
Rule
execute code that return a status.
Action
execute code that does not need a return value.
Delegation
delegate a message to a service, and execute the inner rhai function when the message is forwarded to the service receive endpoint.