# error.Error.InvalidLayout

- **Module:** error
- **Package:** libtmux
- **Language:** Rust
- **Kind:** constant
- **Source:** https://github.com/libtmux/libtmux-rs/blob/84de9258a07d10bdd5f6da01b016a9ae06fe1210/crates/libtmux/src/error.rs#L434
- **Page:** https://libtmux.org/en/rs/latest/reference/error-error-invalidlayout/

```
InvalidLayout {
    reason: &'static str,
}
```

A layout is unsafe to dispatch or cannot hold the planned panes.

## Fields

### Other members

- [`reason`](/en/rs/latest/reference/error-error-invalidlayout-reason/) (`&'static str`): A diagnosis without the caller's layout bytes.
