Skip to main content

Ephemeral

Derive Macro Ephemeral 

Source
#[derive(Ephemeral)]
{
    // Attributes available to this derive:
    #[reconciler]
}
Expand description

Generates a Drop impl that reconciles #[reconciler]-annotated fields to an empty desired set, running their managed items’ exit hooks on drop.

Each field annotated #[reconciler(output = <field_name>)] gets a drop-time call of self.<field>.reconcile(Vec::new(), &mut Default::default(), &mut self.<output_field>). The reconciler’s Context type must implement Default.