pub struct FailingSender(pub NotifyError);Expand description
Sender that always returns one configured failure.
Tuple Fields§
§0: NotifyErrorTrait Implementations§
Source§impl Sender for FailingSender
impl Sender for FailingSender
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 FailingSender
impl RefUnwindSafe for FailingSender
impl Send for FailingSender
impl Sync for FailingSender
impl Unpin for FailingSender
impl UnsafeUnpin for FailingSender
impl UnwindSafe for FailingSender
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