watch_handler

Trait Sender

Source
pub trait Sender<T> {
    // Required method
    fn send_response(self, data: T);
}
Expand description

Trait that should be implemented to send data to the hanging get watcher.

Required Methods§

Source

fn send_response(self, data: T)

Should send a response immediately to the sender.

Implementors§