pub trait ReleaseSteps {
// Required method
fn release(&mut self) -> Result<(), String>;
}Expand description
What: The steps that release what a guarded child held, run after the child ends and before the guard drops. Why: Release runs while the guard still relays signals, so a signal sent during release reaches the child.
In TS you’d write (pseudocode):
interface ReleaseSteps { release(): Promise<void>; }Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".