Slot
A typed reference to the object a recorded operation will create.
Source and package
- Qualified name
-
libtmux::plan:: Slot - Module
- plan
- Package
- libtmux
- Source
- crates/libtmux/src/plan.rs
-
Description#
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());