pub trait ResponseHandler {
// Required method
fn call(self, response: &NotificationResponse);
}Expand description
Helper trait implemented by closures used with NotificationHandle::wait_for_response.
Any FnOnce(&NotificationResponse) closure automatically implements this trait.
Required Methods§
Sourcefn call(self, response: &NotificationResponse)
fn call(self, response: &NotificationResponse)
Invoke the handler with the given response.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".