# plan.Plan.validate

- **Module:** plan.Plan
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/plan.rs#L988
- **Page:** https://libtmux.org/en/rs/latest/reference/plan-plan-validate/

```
plan.Plan.validate(self) -> Result<(), PlanValidationError>
```

Check every step before a run can change tmux state.

# Errors

Returns an error when a slot names an absent or non-earlier step, when
that step does not produce the required tmux object, or when a step's
own arguments cannot render as one tmux command -- such as
[`SendKeys`] carrying literal text together with named keys.
