Struct lettre::stub::StubEmailTransport
[−]
[src]
pub struct StubEmailTransport { /* fields omitted */ }
This transport logs the message envelope and returns the given response
Methods
impl StubEmailTransport
[src]
fn new(response: StubResult) -> StubEmailTransport
[src]
Creates a new transport that always returns the given response
fn new_positive() -> StubEmailTransport
[src]
Creates a new transport that always returns a success response
Trait Implementations
impl Debug for StubEmailTransport
[src]
impl<'a, T: Read + 'a> EmailTransport<'a, T, StubResult> for StubEmailTransport
[src]
fn send<U: SendableEmail<'a, T>>(&mut self, email: &'a U) -> StubResult
[src]
Sends the email