pub trait Releasable: Send {
    fn keep_alive(&mut self);
    fn done(&mut self);
}
Expand description

Trait implemented by an object that can be released: for example to stop performing an action when it’s no longer required.

Required Methods

Indicates that this object should not be released on drop

Indicates that this object is finished with and should be released

Implementations on Foreign Types

Implementors