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§
Sourcefn set_error_reply<I, T>(
&mut self,
rcode: &str,
xcode: Option<&str>,
message: I,
) -> Result<(), SmtpReplyError>where
I: IntoIterator<Item = T>,
T: IntoCString,
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.