pane.Pane.session
Rust
- Python Unavailable
- TypeScript Unavailable
- Rust
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- pane
- Declared in
- Pane
- Package
- libtmux
- Source
- crates/libtmux/src/pane.rs
-
Return the session this pane was reached through.
This re-reads tmux rather than the snapshot, so a session renamed or removed since discovery is reported as it is now.
Ok(None)means the session no longer exists.A window can be linked into several sessions, so this is the session this handle was reached through rather than the pane's only one; the pane itself belongs to exactly one window.
Errors
Returns an error when the session listing fails.
Examples
if let Some(session) = pane.session().await? {println!("{}", session.name().to_string_lossy());}
0 declared, 0 inherited