#[non_exhaustive]pub enum Chooser {
Tree,
Client,
Buffer,
Customize,
}Expand description
One of tmux’s interactive choosers.
Each opens a mode on a client and returns as soon as tmux accepts it; the user’s eventual choice is not reported back here.
§Examples
use libtmux::Chooser;
// A chooser draws in an attached client's terminal, so this needs one; with
// no client tmux has nowhere to put it.
let client = server.clients().await?.into_iter().next();
server.choose(Chooser::Tree, client.as_ref()).await?;Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Tree
Browse sessions, windows, and panes together.
Client
Browse attached clients.
Buffer
Browse paste buffers.
Customize
Customize options and key bindings.
Trait Implementations§
impl Copy for Chooser
impl Eq for Chooser
impl StructuralPartialEq for Chooser
Auto Trait Implementations§
impl Freeze for Chooser
impl RefUnwindSafe for Chooser
impl Send for Chooser
impl Sync for Chooser
impl Unpin for Chooser
impl UnsafeUnpin for Chooser
impl UnwindSafe for Chooser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more