Struct tmux_interface::commands::hooks::set_hook::SetHook [−][src]
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]
&mut self,
target_session: S
) -> &mut Self
[-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]
fn from(item: &TmuxCommand<'a>) -> Self
[src]
impl<'a> From<TmuxCommand<'a>> for SetHook<'a>
[src]
fn from(item: TmuxCommand<'a>) -> Self
[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]
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>,