Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

plan.Slot

Rust
  • Python Unavailable
  • TypeScript Unavailable
  • Rust
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
plan
Package
libtmux
Source
crates/libtmux/src/plan.rs
struct plan.Slot
structoverload [source]
structoverload [source]
struct plan.Slot

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

Members

  • pane method The first pane of this session's first window.
  • step method The index of the operation that creates this object.
  • window method The first window tmux made with this session.
Esc

Type to search.