Skip to main content

apply_layout_intent

Function apply_layout_intent 

Source
pub(crate) async fn apply_layout_intent(
    state: &AppState,
    tab_id: &str,
    intent: LayoutIntent,
    action_id: &str,
    view: Option<LayoutViewState>,
) -> Result<IntentOutcome, String>
Expand description

Dispatch LayoutApplyIntent and write its events to the layout row in one hold of the reducer lock, so rows are written in the order intents are applied. A failed write puts the tab back as the row has it. Publishes on success.