pub fn update(&mut self) {
        match self.inner {
            #[cfg(feature = "dbus")]
            NotificationHandleInner::Dbus(ref mut inner) => inner.update(),
            #[cfg(feature = "zbus")]
            NotificationHandleInner::Zbus(ref mut inner) => inner.update(),
        }
    }
/// Replace the original notification with an updated version
/// ## Example
/// ```no_run
/// # use notify_rust::Notification;
/// let mut notification = Notification::new().summary("Latest News")
///                                           .body("Bayern Dortmund 3:2")
///                                           .show()
///                                           .unwrap();
///
/// std::thread::sleep_ms(1_500);
///
/// notification.summary("Latest News (Correction)")
///             .body("Bayern Dortmund 3:3");
///
/// notification.update();
/// ```
/// Watch out for different implementations of the
/// notification server! On plasma5 for instance, you should also change the appname, so the old
/// message is really replaced and not just amended. Xfce behaves well, all others have not
/// been tested by the developer.
Replace the original notification with an updated version
Replace the original notification with an updated version
pub fn update(&mut self) {
        match self.inner {
            #[cfg(feature = "dbus")]
            NotificationHandleInner::Dbus(ref mut inner) => inner.update(),
            #[cfg(feature = "zbus")]
            NotificationHandleInner::Zbus(ref mut inner) => inner.update(),
        }
    }
pub fn update ( & mut self ) { match self . inner { # [ cfg ( feature " " ) ] NotificationHandleInner :: Dbus ( ref mut inner ) => inner . update ( ) , # [ cfg ( feature " " ) ] NotificationHandleInner :: Zbus ( ref mut inner ) => inner . update ( ) , } }
Replace the original notification with an updated version
Replace the original notification with an updated version
&mut self
&mut self
example
None
use notify_rust::notification;
let mut notification = Notification::new().summary("Latest News")
.body("Bayern Dortmund 3:2")
.show()
.unwrap().



notification.summary("Latest News (Correction)")
.body("Bayern Dortmund 3:3").

notification.update();
```
Watch out for different implementations of the
notification server. On plasma5 for instance, you should also change the appname, so the old
message is really replaced and not just amended. Xfce behaves well, all others have not
been tested by the developer.
let mut notification = Notification :: new () . summary ( " Latest News " ) . body ( " Bayern Dortmund 3 : 2 " ) . show () . unwrap () . notification . summary ( " Latest News ( Correction ) " ) . body ( " Bayern Dortmund 3 : 3 " ) . notification . update () ; ` ` ` Watch out for different implementations of the notification server . On plasma5 for instance you should also change the appname so the old message is really replaced and not just amended . Xfce behaves well all others have not been tested by the developer .