Struct tmux_interface::commands::clients_and_sessions::detach_client::DetachClient [−][src]
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]
&mut self,
shell_command: S
) -> &mut Self
[-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]
&mut self,
target_session: S
) -> &mut Self
[-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]
&mut self,
target_client: S
) -> &mut Self
[-t target-client]
- specify the client
pub fn output(&self) -> Result<TmuxOutput, Error>
[src]
Trait Implementations
impl<'a> Clone for DetachClient<'a>
[src]
fn clone(&self) -> DetachClient<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for DetachClient<'a>
[src]
impl<'a> Default for DetachClient<'a>
[src]
impl<'a> From<&'_ TmuxCommand<'a>> for DetachClient<'a>
[src]
fn from(item: &TmuxCommand<'a>) -> Self
[src]
impl<'a> From<TmuxCommand<'a>> for DetachClient<'a>
[src]
fn from(item: TmuxCommand<'a>) -> Self
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,