pub struct KillSessionRequest {
pub target: SessionName,
pub kill_all_except_target: bool,
pub clear_alerts: bool,
}Expand description
Request payload for kill-session.
Fields§
§target: SessionNameThe exact target session name.
kill_all_except_target: boolWhether every other session should be destroyed instead of the target session.
clear_alerts: boolWhether the target session’s window alert flags should be cleared instead of destroying it.
Trait Implementations§
Source§impl Clone for KillSessionRequest
impl Clone for KillSessionRequest
Source§fn clone(&self) -> KillSessionRequest
fn clone(&self) -> KillSessionRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KillSessionRequest
impl Debug for KillSessionRequest
Source§impl<'de> Deserialize<'de> for KillSessionRequest
impl<'de> Deserialize<'de> for KillSessionRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KillSessionRequest
impl PartialEq for KillSessionRequest
Source§fn eq(&self, other: &KillSessionRequest) -> bool
fn eq(&self, other: &KillSessionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for KillSessionRequest
impl Serialize for KillSessionRequest
impl Eq for KillSessionRequest
impl StructuralPartialEq for KillSessionRequest
Auto Trait Implementations§
impl Freeze for KillSessionRequest
impl RefUnwindSafe for KillSessionRequest
impl Send for KillSessionRequest
impl Sync for KillSessionRequest
impl Unpin for KillSessionRequest
impl UnsafeUnpin for KillSessionRequest
impl UnwindSafe for KillSessionRequest
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