Struct new_tokio_smtp::ForwardPath[][src]

pub struct ForwardPath(_);

represents a forward path, most times this is just a mail address

Note that this type is not supposed to contain the surrounding '<' and '>'. They will be added automatically.

Note that currently no parser is implemented and that the allowed grammar of the forward path changes depending on the EsmtKeywords in EHLO and on the parameters of the previously send MAIL command. This and the fact that part of the grammar of forward paths are discouraged to be used makes it a bit of a wast of time to implement the grammar here. Through send_mail actually does know about SMTPUTF8 and keeps track of it.

Methods

impl ForwardPath
[src]

return the inner representation as &str

create a new instance from a string without validating the input

Trait Implementations

impl Debug for ForwardPath
[src]

Formats the value using the given formatter. Read more

impl Clone for ForwardPath
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for ForwardPath
[src]

impl PartialEq for ForwardPath
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for ForwardPath
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl AsRef<str> for ForwardPath
[src]

Performs the conversion.

impl Into<String> for ForwardPath
[src]

Performs the conversion.

impl PartialEq<str> for ForwardPath
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> PartialEq<&'a str> for ForwardPath
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialEq<String> for ForwardPath
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<MailAddress> for ForwardPath
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ForwardPath

impl Sync for ForwardPath