pub fn wait_for_action<F>(self, invocation_closure: F)
    where
        F: FnOnce(&str),
    {
        match self.inner {
            #[cfg(feature = "dbus")]
            NotificationHandleInner::Dbus(inner) => inner.wait_for_action(|action: &ActionResponse| match action {
                ActionResponse::Custom(action) => invocation_closure(action),
                ActionResponse::Closed(_reason) => invocation_closure("__closed"), // FIXME: remove backward compatibility with 5.0
            }),

            #[cfg(feature = "zbus")]
            NotificationHandleInner::Zbus(inner) => inner.wait_for_action(|action: &ActionResponse| match action {
                ActionResponse::Custom(action) => invocation_closure(action),
                ActionResponse::Closed(_reason) => invocation_closure("__closed"), // FIXME: remove backward compatibility with 5.0
            }),
        };
    }
/// Waits for the user to act on a notification and then calls
/// `invocation_closure` with the name of the corresponding action.
Waits for the user to act on a notification and then calls
`invocation_closure` with the name of the corresponding action.
Waits for the user to act on a notification and then calls ` invocation_closure ` with the name of the corresponding action .
pub fn wait_for_action<F>(self, invocation_closure: F)
    where
        F: FnOnce(&str),
    {
        match self.inner {
            #[cfg(feature = "dbus")]
            NotificationHandleInner::Dbus(inner) => inner.wait_for_action(|action: &ActionResponse| match action {
                ActionResponse::Custom(action) => invocation_closure(action),
                ActionResponse::Closed(_reason) => invocation_closure("__closed"), // FIXME: remove backward compatibility with 5.0
            }),
            #[cfg(feature = "zbus")]
            NotificationHandleInner::Zbus(inner) => inner.wait_for_action(|action: &ActionResponse| match action {
                ActionResponse::Custom(action) => invocation_closure(action),
                ActionResponse::Closed(_reason) => invocation_closure("__closed"), // FIXME: remove backward compatibility with 5.0
            }),
        };
    }
pub fn wait_for_action < F > ( self , invocation_closure : F ) where F : FnOnce ( & str ) , { match self . inner { # [ cfg ( feature " " ) ] NotificationHandleInner :: Dbus ( inner ) => inner . wait_for_action ( | action : & ActionResponse | match action { ActionResponse :: Custom ( action ) => invocation_closure ( action ) , ActionResponse :: Closed ( _reason ) => invocation_closure ( " " ) , // FIXME: remove backward compatibility with 5.0 } ) , # [ cfg ( feature " " ) ] NotificationHandleInner :: Zbus ( inner ) => inner . wait_for_action ( | action : & ActionResponse | match action { ActionResponse :: Custom ( action ) => invocation_closure ( action ) , ActionResponse :: Closed ( _reason ) => invocation_closure ( " " ) , // FIXME: remove backward compatibility with 5.0 } ) , } ; }
Waits for the user to act on a notification and then calls
`invocation_closure` with the name of the corresponding action.
Waits for the user to act on a notification and then calls ` invocation_closure ` with the name of the corresponding action .
self
invocation_closure
F
self
invocation_closure
F