Struct lettre::stub::StubTransport
source · pub struct StubTransport { /* private fields */ }
Expand description
This transport logs the message envelope and returns the given response
Implementations
sourceimpl StubTransport
impl StubTransport
sourcepub fn new(response: StubResult) -> StubTransport
pub fn new(response: StubResult) -> StubTransport
Creates a new transport that always returns the given response
sourcepub fn new_positive() -> StubTransport
pub fn new_positive() -> StubTransport
Creates a new transport that always returns a success response
Trait Implementations
sourceimpl Clone for StubTransport
impl Clone for StubTransport
sourcefn clone(&self) -> StubTransport
fn clone(&self) -> StubTransport
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for StubTransport
impl Debug for StubTransport
sourceimpl<'a> Transport<'a> for StubTransport
impl<'a> Transport<'a> for StubTransport
sourcefn send(&mut self, email: SendableEmail) -> StubResult
fn send(&mut self, email: SendableEmail) -> StubResult
Sends the email
impl Copy for StubTransport
Auto Trait Implementations
impl RefUnwindSafe for StubTransport
impl Send for StubTransport
impl Sync for StubTransport
impl Unpin for StubTransport
impl UnwindSafe for StubTransport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more