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

command.CommandResult.request_id

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

View as Markdown

Module
command
Declared in
CommandResult
Package
libtmux
Source
crates/libtmux/src/command.rs
request_id ( self ) → u64
method [source]
method [source]
request_id

Return the Core-scoped dispatch-request identity.

The Core allocates this value before validation, so an error can expose an ID even when no process was spawned. Clones of one crate::Server share the allocating Core. The ID is not globally unique, a process ID, an internal attempt ID, or a control-mode protocol-block ID.

Examples

let server = libtmux::Server::builder().socket_path("/tmp/libtmux-rs-test/result-id.sock").build()?;
let result = server.cmd(libtmux::Command::new("list-sessions")).await?;
assert!(result.request_id() > 0);
server.shutdown().await?;

0 declared, 0 inherited

Esc

Type to search.