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§

source

fn call(&self, reason: CloseReason)

This is called with the CloseReason.

Implementors§

source§

impl<F> CloseHandler<CloseReason> for F
where F: Fn(CloseReason),

source§

impl<F> CloseHandler<()> for F
where F: Fn(),