Skip to main content

Disposable

Trait Disposable 

Source
pub trait Disposable: Send + 'static {
    // Required method
    fn dispose(self: Box<Self>);
}

Required Methods§

Source

fn dispose(self: Box<Self>)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Disposable for EffectHandle

Source§

impl<F> Disposable for F
where F: FnOnce() + Send + 'static,

Source§

impl<T> Disposable for Scheduled<T>
where T: Send + 'static,