OnClose

Trait OnClose 

Source
pub trait OnClose<E>: Clone {
    // Required method
    fn on_close(&self, error: Option<E>);
}
👎Deprecated
Expand description

Act when one of inner channels gets closed instead of closing the outer channel. Used with multicast.

Deprecated in favour of MultiItem.

Required Methods§

Source

fn on_close(&self, error: Option<E>)

👎Deprecated

Get notified about something getting closed (optionally with an error).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E, F: Clone + Fn(Option<E>)> OnClose<E> for F

Implemented only for Sized because stored.