pub struct NotifySendSink { /* private fields */ }Expand description
Linux notify-send sink. argv only — never a shell — with stderr nulled:
the notification daemon’s complaints are not the bar’s problem. A missing
binary or a failed spawn is swallowed; a hanging one is killed after
[SPAWN_KILL_AFTER].
Implementations§
Trait Implementations§
Source§impl Clone for NotifySendSink
impl Clone for NotifySendSink
Source§impl Debug for NotifySendSink
impl Debug for NotifySendSink
Source§impl Default for NotifySendSink
Available on Linux only.
impl Default for NotifySendSink
Available on Linux only.
Source§impl NotifySink for NotifySendSink
Available on Linux only.
impl NotifySink for NotifySendSink
Available on Linux only.
fn deliver(&mut self, notification: &Notification)
Auto Trait Implementations§
impl Freeze for NotifySendSink
impl RefUnwindSafe for NotifySendSink
impl Send for NotifySendSink
impl Sync for NotifySendSink
impl Unpin for NotifySendSink
impl UnsafeUnpin for NotifySendSink
impl UnwindSafe for NotifySendSink
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more