pub struct LibNotifySink;Expand description
Production sink: wraps notify-rust and runs the blocking call on
the dedicated tokio blocking pool. Cheap to clone (it’s a ZST).
Implementations§
Source§impl LibNotifySink
impl LibNotifySink
Trait Implementations§
Source§impl Clone for LibNotifySink
impl Clone for LibNotifySink
Source§fn clone(&self) -> LibNotifySink
fn clone(&self) -> LibNotifySink
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LibNotifySink
impl Debug for LibNotifySink
Source§impl Default for LibNotifySink
impl Default for LibNotifySink
Source§fn default() -> LibNotifySink
fn default() -> LibNotifySink
Returns the “default value” for a type. Read more
Source§impl NotificationSink for LibNotifySink
impl NotificationSink for LibNotifySink
Source§fn show<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
summary: &'life1 str,
body: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), NotificationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn show<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
summary: &'life1 str,
body: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), NotificationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Emit a single notification.
summary is the title; body is
already-sanitized HTML-escaped text suitable for daemons that
interpret a subset of HTML markup (KDE, GNOME).impl Copy for LibNotifySink
Auto Trait Implementations§
impl Freeze for LibNotifySink
impl RefUnwindSafe for LibNotifySink
impl Send for LibNotifySink
impl Sync for LibNotifySink
impl Unpin for LibNotifySink
impl UnsafeUnpin for LibNotifySink
impl UnwindSafe for LibNotifySink
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