command.CommandResult.request_id
Rust
- Python Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- command
- Declared in
- CommandResult
- Package
- libtmux
- Source
- crates/libtmux/src/command.rs
-
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::Servershare 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