pub struct SetHook<'a> {
pub append: bool,
pub global: bool,
pub run: bool,
pub unset: bool,
pub target_session: Option<Cow<'a, str>>,
pub hook_name: Option<Cow<'a, str>>,
pub command: Option<Cow<'a, str>>,
}
Expand description
Structure for setting or unsetting hook hook-name
to command.
§Manual
tmux ^3.0:
set-hook [-agRu] [-t target-session] hook-name command
tmux ^2.8:
set-hook [-gRu] [-t target-session] hook-name command
tmux ^2.4:
set-hook [-gu] [-t target-session] hook-name command
tmux ^2.2:
set-hook [-g] [-t target-session] hook-name command
Fields§
§append: bool
[-a]
global: bool
[-g]
run: bool
[-R]
unset: bool
[-u]
target_session: Option<Cow<'a, str>>
[-t target-session]
hook_name: Option<Cow<'a, str>>
hook-name
command: Option<Cow<'a, str>>
command
Implementations§
Trait Implementations§
source§impl<'a> From<SetHook<'a>> for TmuxCommand<'a>
impl<'a> From<SetHook<'a>> for TmuxCommand<'a>
source§impl<'a> Ord for SetHook<'a>
impl<'a> Ord for SetHook<'a>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq for SetHook<'a>
impl<'a> PartialEq for SetHook<'a>
source§impl<'a> PartialOrd for SetHook<'a>
impl<'a> PartialOrd for SetHook<'a>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a> Eq for SetHook<'a>
impl<'a> StructuralPartialEq for SetHook<'a>
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§
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