Struct new_tokio_smtp::response::Response[][src]

pub struct Response { /* fields omitted */ }

response of a smtp server

Methods

impl Response
[src]

crate a new Response from a response code and a number of lines

If lines is empty a single empty line will be pushed to the lines Vec.

true if the response code is unknown or indicates an error

return the response code

returns the lines of the msg/payload

this will have at last one line, throuhg this line might be empty

Trait Implementations

impl Debug for Response
[src]

Formats the value using the given formatter. Read more

impl Clone for Response
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Response
[src]

impl PartialEq for Response
[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 Response
[src]

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

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

Auto Trait Implementations

impl Send for Response

impl Sync for Response