Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-rs latest

Client.switch_to

Point this client at another session.

Source and package
Qualified name
libtmux::client::Client::switch_to
Module
client
Declared in
Client
Package
libtmux
Source
crates/libtmux/src/client.rs
pub async fn switch_to( &self, session: &crate::Session ) -> Result<(), Error>

Description#

Errors

Returns Error::ServerMismatch when the session belongs to another server, or an error when the session does not exist or tmux refuses.

Parameters

tmux command#

The tmux commands behind switch_to.

tmux C API#

The C declarations in tmux that implement these commands.

Esc

Type to search.

Reference previewOpen reference