Skip to main content

ReleaseSteps

Trait ReleaseSteps 

Source
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§

Source

fn release(&mut self) -> Result<(), String>

Releases the landing lock and removes the transaction.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§