# formats.plan.TransportDialect.for_version

- **Module:** formats.plan.TransportDialect
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/formats/plan.rs#L92
- **Page:** https://libtmux.org/reference/rs/formats-plan-transportdialect-for_version/

```
formats.plan.TransportDialect.for_version(version: &TmuxVersion) -> Self
```

Select the dialect a detected tmux version emits.

`master` names no release and resolves to [`TransportDialect::RawQ`],
matching every tmux tree since the 3.6 restore. A build that is wrong
about this fails loudly during decoding rather than returning altered
bytes, because neither dialect accepts the other's escapes.
