Skip to main content

Sender

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§