Struct tmux_interface::commands::clients_and_sessions::detach_client::DetachClient[][src]

pub struct DetachClient<'a>(pub TmuxCommand<'a>);

Structure for detaching the current client

Manual

tmux ^2.4:

tmux detach-client [-aP] [-E shell-command] [-s target-session] [-t target-client]
(alias: detach)

tmux ^2.2:

tmux detach-client [-aP] [-s target-session] [-t target-client]
(alias: detach)

tmux ^1.5:

tmux detach-client [-P] [-s target-session] [-t target-client]
(alias: detach)

tmux ^0.8:

tmux detach-client [-t target-client]
(alias: detach)

Implementations

impl<'a> DetachClient<'a>[src]

pub fn new() -> Self[src]

pub fn all(&mut self) -> &mut Self[src]

[-a] - kill all but the client client given with -t

pub fn parent_sighup(&mut self) -> &mut Self[src]

[-P] - send SIGHUP to the parent process of the client, typically causing it to exit

pub fn shell_command<S: Into<Cow<'a, str>>>(
    &mut self,
    shell_command: S
) -> &mut Self
[src]

[-E shell-command] - run shell-command to replace the client

pub fn target_session<S: Into<Cow<'a, str>>>(
    &mut self,
    target_session: S
) -> &mut Self
[src]

[-s target-session] - specify the session, all clients currently attached

pub fn target_client<S: Into<Cow<'a, str>>>(
    &mut self,
    target_client: S
) -> &mut Self
[src]

[-t target-client] - specify the client

pub fn output(&self) -> Result<TmuxOutput, Error>[src]

Trait Implementations

impl<'a> Clone for DetachClient<'a>[src]

impl<'a> Debug for DetachClient<'a>[src]

impl<'a> Default for DetachClient<'a>[src]

impl<'a> From<&'_ TmuxCommand<'a>> for DetachClient<'a>[src]

impl<'a> From<TmuxCommand<'a>> for DetachClient<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for DetachClient<'a>

impl<'a> Send for DetachClient<'a>

impl<'a> Sync for DetachClient<'a>

impl<'a> Unpin for DetachClient<'a>

impl<'a> UnwindSafe for DetachClient<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.