Struct tmux_interface::commands::hooks::set_hook::SetHook[][src]

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

Structure for setting or unsetting hook hook-name to command.

Manual

tmux ^3.0:

tmux set-hook [-agRu] [-t target-session] hook-name command

tmux ^2.8:

tmux set-hook [-gRu] [-t target-session] hook-name command

tmux ^2.4:

tmux set-hook [-gu] [-t target-session] hook-name command

tmux ^2.2:

tmux set-hook [-g] [-t target-session] hook-name command

Implementations

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

pub fn new() -> Self[src]

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

[-g]

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

[-R]

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

[-u]

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

[-t target-session]

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

hook-name

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

command

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

Trait Implementations

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for SetHook<'a>

impl<'a> Send for SetHook<'a>

impl<'a> Sync for SetHook<'a>

impl<'a> Unpin for SetHook<'a>

impl<'a> UnwindSafe for SetHook<'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.