pub struct KillSession<'a> {
pub all: bool,
pub clear_alerts: bool,
pub target_session: Option<Cow<'a, str>>,
}
Expand description
Destroy the given session
§Manual
tmux ^2.2:
kill-session [-aC] [-t target-session]
tmux ^1.7:
kill-session [-a] [-t target-session]
tmux ^0.8:
kill-session [-t target-session]
Fields§
§all: bool
[-a]
clear_alerts: bool
[-C]
target_session: Option<Cow<'a, str>>
[-t target-session]
Implementations§
source§impl<'a> KillSession<'a>
impl<'a> KillSession<'a>
pub fn new() -> Self
sourcepub fn clear_alerts(self) -> Self
pub fn clear_alerts(self) -> Self
[-C]
sourcepub fn target_session<S: Into<Cow<'a, str>>>(self, target_session: S) -> Self
pub fn target_session<S: Into<Cow<'a, str>>>(self, target_session: S) -> Self
[-t target-session]
pub fn build(self) -> TmuxCommand<'a>
Trait Implementations§
source§impl<'a> Clone for KillSession<'a>
impl<'a> Clone for KillSession<'a>
source§fn clone(&self) -> KillSession<'a>
fn clone(&self) -> KillSession<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for KillSession<'a>
impl<'a> Debug for KillSession<'a>
source§impl<'a> Default for KillSession<'a>
impl<'a> Default for KillSession<'a>
source§fn default() -> KillSession<'a>
fn default() -> KillSession<'a>
Returns the “default value” for a type. Read more
source§impl<'a> From<KillSession<'a>> for TmuxCommand<'a>
impl<'a> From<KillSession<'a>> for TmuxCommand<'a>
source§fn from(item: KillSession<'a>) -> Self
fn from(item: KillSession<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for KillSession<'a>
impl<'a> Hash for KillSession<'a>
source§impl<'a> Ord for KillSession<'a>
impl<'a> Ord for KillSession<'a>
source§fn cmp(&self, other: &KillSession<'a>) -> Ordering
fn cmp(&self, other: &KillSession<'a>) -> Ordering
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 KillSession<'a>
impl<'a> PartialEq for KillSession<'a>
source§fn eq(&self, other: &KillSession<'a>) -> bool
fn eq(&self, other: &KillSession<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for KillSession<'a>
impl<'a> PartialOrd for KillSession<'a>
source§fn partial_cmp(&self, other: &KillSession<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &KillSession<'a>) -> Option<Ordering>
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 KillSession<'a>
impl<'a> StructuralPartialEq for KillSession<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for KillSession<'a>
impl<'a> Send for KillSession<'a>
impl<'a> Sync for KillSession<'a>
impl<'a> Unpin for KillSession<'a>
impl<'a> UnwindSafe for KillSession<'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