pub struct NotificationIpcServer { /* private fields */ }Expand description
Notification IPC server that handles incoming notification messages and dispatches them to the desktop notification manager.
Implementations§
Source§impl NotificationIpcServer
impl NotificationIpcServer
Sourcepub fn init(&self) -> Result<(), KernelError>
pub fn init(&self) -> Result<(), KernelError>
Initialize the notification IPC server by registering the endpoint.
The actual endpoint registration is handled by desktop_ipc::init();
this method validates that the endpoint is available and marks the
notification service as ready to accept messages.
Sourcepub fn handle_message(
&self,
msg: &NotificationMessage,
) -> Result<u32, KernelError>
pub fn handle_message( &self, msg: &NotificationMessage, ) -> Result<u32, KernelError>
Handle an incoming notification message.
Returns:
- For
Notify: the assigned notification ID. - For
Dismiss/DismissAll: 0 on success. - For
GetActive: the count of active notifications.