Trait notify_rust::CloseHandler
source · pub trait CloseHandler<T> {
// Required method
fn call(&self, reason: CloseReason);
}
Expand description
Your handy callback for the Close
signal of your Notification.
This is implemented by Fn()
and Fn(CloseReason)
, so there is probably no good reason for you to manually implement this trait.
Should you find one anyway, please notify me and I’ll gladly remove this obviously redundant comment.
Required Methods§
sourcefn call(&self, reason: CloseReason)
fn call(&self, reason: CloseReason)
This is called with the CloseReason
.