Struct notify_rust::server::NotificationServer
[−]
[src]
pub struct NotificationServer { pub counter: Cell<u32>, pub stop: Cell<bool>, }
An experimental notification server. See the module level documentation for more.
Fields
counter: Cell<u32>
Counter for generating notification ids
stop: Cell<bool>
A flag that stops the server
Methods
impl NotificationServer
[src]
fn new() -> NotificationServer
Create a new NotificationServer
instance.
fn start<F>(&mut self, closure: F) where
F: Fn(&Notification),
F: Fn(&Notification),
Start listening for incoming notifications
Trait Implementations
impl Debug for NotificationServer
[src]
impl Default for NotificationServer
[src]
fn default() -> NotificationServer
Returns the "default value" for a type. Read more