pub struct DesktopSink { /* private fields */ }Expand description
Sends notifications to the desktop from a background thread, through the
freedesktop Notifications D-Bus API on the session bus (Notify with
replaces_id to update in place, CloseNotification to clear). The
thread keeps the server’s notification id per key. Without a session
bus it falls back to notify-send, which can neither update nor close,
and tries the bus again after 30 s; a connection that breaks is dropped
and rebuilt on the next request. Requests never block the caller: they are queued, and dropped when the
queue is full. Every failure is logged at debug and otherwise ignored.
Implementations§
Source§impl DesktopSink
impl DesktopSink
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DesktopSink
impl RefUnwindSafe for DesktopSink
impl Send for DesktopSink
impl Sync for DesktopSink
impl Unpin for DesktopSink
impl UnsafeUnpin for DesktopSink
impl UnwindSafe for DesktopSink
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