Trait notify_rust::CloseHandler [−][src]
pub trait CloseHandler<T> { 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
fn call(&self, reason: CloseReason)
[src]
Expand description
This is called with the CloseReason
.
Implementors
impl<F> CloseHandler<CloseReason> for F where
F: Fn(CloseReason),
[src]
impl<F> CloseHandler<CloseReason> for F where
F: Fn(CloseReason),
[src]fn call(&self, reason: CloseReason)
[src]
impl<F> CloseHandler<()> for F where
F: Fn(),
[src]
impl<F> CloseHandler<()> for F where
F: Fn(),
[src]