pub struct LogSender;Expand description
Default sender: emits the rendered notification to the log. Useful in dev and as the reference transport.
Trait Implementations§
Source§impl Sender for LogSender
impl Sender for LogSender
Source§fn send<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
recipient: &'life1 str,
notif: &'life2 Notification,
) -> Pin<Box<dyn Future<Output = Result<(), NotifyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn send<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
recipient: &'life1 str,
notif: &'life2 Notification,
) -> Pin<Box<dyn Future<Output = Result<(), NotifyError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Deliver
notif to recipient (chat id / email address / webhook …).Auto Trait Implementations§
impl Freeze for LogSender
impl RefUnwindSafe for LogSender
impl Send for LogSender
impl Sync for LogSender
impl Unpin for LogSender
impl UnsafeUnpin for LogSender
impl UnwindSafe for LogSender
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