Struct lettre::transport::stub::AsyncStubTransport
source · pub struct AsyncStubTransport { /* private fields */ }
Available on crate features
tokio1
or async-std1
only.Expand description
This transport logs messages and always returns the given response
Implementations§
Trait Implementations§
source§impl AsyncTransport for AsyncStubTransport
impl AsyncTransport for AsyncStubTransport
§type Ok = ()
type Ok = ()
Available on crate features
tokio1
or async-std1
only.Response produced by the Transport
§type Error = Error
type Error = Error
Available on crate features
tokio1
or async-std1
only.Error produced by the Transport
source§fn send_raw<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send_raw<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
envelope: &'life1 Envelope,
email: &'life2 [u8]
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Available on crate features
tokio1
or async-std1
only.source§fn send<'life0, 'async_trait>(
&'life0 self,
message: Message
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
message: Message
) -> Pin<Box<dyn Future<Output = Result<Self::Ok, Self::Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
Available on (crate features
tokio1
or async-std1
) and crate feature builder
only.Sends the email
source§impl Clone for AsyncStubTransport
impl Clone for AsyncStubTransport
source§fn clone(&self) -> AsyncStubTransport
fn clone(&self) -> AsyncStubTransport
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for AsyncStubTransport
impl !RefUnwindSafe for AsyncStubTransport
impl Send for AsyncStubTransport
impl Sync for AsyncStubTransport
impl Unpin for AsyncStubTransport
impl !UnwindSafe for AsyncStubTransport
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more