plan.Slot
Rust
- Python Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- plan
- Package
- libtmux
- Source
- crates/libtmux/src/plan.rs
-
A typed reference to the object a recorded operation will create.
Returned by
Plan::add. The type parameter is the scope it points at, so a slot for a pane cannot be handed to an operation that wants a window. A slot is only meaningful inside the plan that produced it.Examples
use libtmux::plan::{NewWindow, Plan, SendKeys};use libtmux::SessionId;let mut plan = Plan::new();let window = plan.add(NewWindow::new("$0".parse::<SessionId>()?).name("build"));// A new window owns a first pane, reachable without listing anything.plan.add(SendKeys::new(window.pane()).text("just check").enter());
3 declared, 0 inherited