pub struct MemoryMailTransport { /* private fields */ }Implementations§
Source§impl MemoryMailTransport
impl MemoryMailTransport
pub fn named(name: impl Into<String>) -> Result<Self, MailError>
pub async fn messages(&self) -> Vec<MailMessage>
pub async fn count(&self) -> usize
pub async fn clear(&self)
pub async fn sent_to(&self, address: &str) -> bool
pub async fn assert_sent_count(&self, expected: usize)
pub async fn assert_sent_to(&self, address: &str)
Trait Implementations§
Source§impl Debug for MemoryMailTransport
impl Debug for MemoryMailTransport
Source§impl Default for MemoryMailTransport
impl Default for MemoryMailTransport
Source§impl MailTransport for MemoryMailTransport
impl MailTransport for MemoryMailTransport
Auto Trait Implementations§
impl !Freeze for MemoryMailTransport
impl !RefUnwindSafe for MemoryMailTransport
impl Send for MemoryMailTransport
impl Sync for MemoryMailTransport
impl Unpin for MemoryMailTransport
impl UnsafeUnpin for MemoryMailTransport
impl UnwindSafe for MemoryMailTransport
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