SetErrorReply

Trait SetErrorReply 

Source
pub trait SetErrorReply {
    // Required method
    fn set_error_reply<I, T>(
        &mut self,
        rcode: &str,
        xcode: Option<&str>,
        message: I,
    ) -> Result<(), SmtpReplyError>
       where I: IntoIterator<Item = T>,
             T: IntoCString;
}
Expand description

Customisation of an SMTP reply.

Required Methods§

Source

fn set_error_reply<I, T>( &mut self, rcode: &str, xcode: Option<&str>, message: I, ) -> Result<(), SmtpReplyError>
where I: IntoIterator<Item = T>, T: IntoCString,

Configures an SMTP error reply.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§