FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IReversibleAction

    trait · ferroui-xaml-interactivity · v0.5.0

    trait IReversibleAction: IAction
    

    Interface for actions that can revert the effect of a previous IAction::execute call.

    View source

    Members

    execute_reversibly

    fn execute_reversibly(self: &Self, sender: Option<&BoxedValue>, parameter: Option<&BoxedValue>) -> Option<BoxedValue>
    

    Executes the action while capturing the state required by revert.

    Returns the result of the reversible execution.

    Source

    revert

    fn revert(self: &Self, sender: Option<&BoxedValue>, parameter: Option<&BoxedValue>) -> Option<BoxedValue>
    

    Reverts the previously applied action.

    Returns the result of the revert operation.

    Source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.