pub trait CloseHandler<T> {
// Required method
fn call(&self, reason: CloseReason);
}Expand description
Callback for the close signal of a notification.
Implemented for both Fn(CloseReason) and Fn(), so there is rarely
a good reason to implement this manually.
Required Methods§
Sourcefn call(&self, reason: CloseReason)
fn call(&self, reason: CloseReason)
Called with the CloseReason.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".