Skip to main content

DriverCancel

Type Alias DriverCancel 

Source
pub type DriverCancel = Box<dyn FnOnce()>;
Expand description

Cancels driver-owned work. Dropping it intentionally does nothing; sources register it with ctx.on_deactivation so teardown is explicit.

Aliased Typeยง

pub struct DriverCancel(/* private fields */);