[−][src]Struct async_smtp::stub::StubTransport
This transport logs the message envelope and returns the given response
Implementations
impl StubTransport[src]
pub fn new(response: StubResult) -> StubTransport[src]
Creates a new transport that always returns the given response
pub fn new_positive() -> StubTransport[src]
Creates a new transport that always returns a success response
Trait Implementations
impl Clone for StubTransport[src]
fn clone(&self) -> StubTransport[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for StubTransport[src]
impl Debug for StubTransport[src]
impl<'a> Transport<'a> for StubTransport[src]
type Result = StubResult
Result type for the transport
fn send<'life0, 'async_trait>(
&'life0 mut self,
email: SendableEmail
) -> Pin<Box<dyn Future<Output = StubResult> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait, [src]
&'life0 mut self,
email: SendableEmail
) -> Pin<Box<dyn Future<Output = StubResult> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,