pub struct CapturingSender {
pub deliveries: Mutex<Vec<(String, String)>>,
}Expand description
Sender that captures rendered deliveries.
Fields§
§deliveries: Mutex<Vec<(String, String)>>Captured recipient and body pairs.
Trait Implementations§
Source§impl Default for CapturingSender
impl Default for CapturingSender
Source§fn default() -> CapturingSender
fn default() -> CapturingSender
Returns the “default value” for a type. Read more
Source§impl Sender for CapturingSender
impl Sender for CapturingSender
Source§fn send<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
context: &'life1 DeliveryContext,
recipient: &'life2 str,
notification: &'life3 Notification,
) -> Pin<Box<dyn Future<Output = Result<(), NotifyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn send<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
context: &'life1 DeliveryContext,
recipient: &'life2 str,
notification: &'life3 Notification,
) -> Pin<Box<dyn Future<Output = Result<(), NotifyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Performs exactly one bounded delivery attempt.
Auto Trait Implementations§
impl !Freeze for CapturingSender
impl RefUnwindSafe for CapturingSender
impl Send for CapturingSender
impl Sync for CapturingSender
impl Unpin for CapturingSender
impl UnsafeUnpin for CapturingSender
impl UnwindSafe for CapturingSender
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