Skip to main content

delegate_transition

Function delegate_transition 

Source
pub fn delegate_transition<B: Behavior>(
    behavior: &mut B,
    event: B::Event,
) -> BehaviorActed<B>
Expand description

Fold one event through an inner behavior owned by a semantic wrapper.

This invokes the inner deterministic fold exactly once and returns its complete typed action value without interpreting it. The port can be invoked before initialization; a wrapper or runtime must enforce the order required by its lifecycle contract.

§Errors

Returns the inner behavior’s controlled transition failure unchanged.