pub struct Desktop { /* private fields */ }Expand description
Notifications, and the answers that come back from them.
Implementations§
Source§impl Desktop
impl Desktop
Sourcepub fn connect() -> Result<Self, Error>
pub fn connect() -> Result<Self, Error>
Reach the session bus and the notification service.
§Errors
Where there is no session bus, or nothing implements the interface — both of which are ordinary rather than exceptional. A session over SSH has neither, and the answer is concept 9’s floor rather than a failure.
Trait Implementations§
Source§impl Channel for Desktop
impl Channel for Desktop
Source§fn ask(&self, question: &Question)
fn ask(&self, question: &Question)
Ask something, and return. The answer, if one comes, arrives through
answers.Source§fn withdraw(&self, about: &str)
fn withdraw(&self, about: &str)
Take back a question that no longer applies, named by its
about. Read moreSource§fn answers(&self) -> Vec<Answer>
fn answers(&self) -> Vec<Answer>
The answers that have arrived since this was last asked. Read more
Source§fn insist(&self, report: &Report)
fn insist(&self, report: &Report)
Say something in a way that cannot be missed, because something was
refused and the person is owed an explanation for it. Read more
Source§fn stay_until_seen(&self)
fn stay_until_seen(&self)
Wait for anything this channel put on the screen that belongs to this
process, before the process ends. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for Desktop
impl !UnwindSafe for Desktop
impl Freeze for Desktop
impl Send for Desktop
impl Sync for Desktop
impl Unpin for Desktop
impl UnsafeUnpin for Desktop
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