Skip to main content

prepare_content

Function prepare_content 

Source
fn prepare_content(
    unit: &Unit<'_>,
    action: &Action,
    report: &Reporter<'_>,
) -> Result<Content, Refused>
Expand description

Classify and realise one content action.

The only place Action::Pass, Action::Replace, Action::ReplacePayload and Action::Drop turn into bytes, reached both directly and through a Action::Delay / Action::Hold.