pub enum SwitchPolicy {
Keep,
Kill,
}Expand description
What happens to the previousSessionId predecessor’s unfinished
background work. Closed: the client selects one of the two policies
the host applies.
Variants§
Keep
Leave the predecessor’s background work running; only its persistent monitors end.
Kill
Cancel the predecessor’s unfinished background work, as the TUI’s
/new and /clear do.
Trait Implementations§
Source§impl Clone for SwitchPolicy
impl Clone for SwitchPolicy
impl Copy for SwitchPolicy
Source§impl Debug for SwitchPolicy
impl Debug for SwitchPolicy
Source§impl<'de> Deserialize<'de> for SwitchPolicy
impl<'de> Deserialize<'de> for SwitchPolicy
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
impl Eq for SwitchPolicy
Source§impl PartialEq for SwitchPolicy
impl PartialEq for SwitchPolicy
Source§impl Serialize for SwitchPolicy
impl Serialize for SwitchPolicy
impl StructuralPartialEq for SwitchPolicy
Auto Trait Implementations§
impl Forget for SwitchPolicy
impl Freeze for SwitchPolicy
impl Move for SwitchPolicy
impl RefUnwindSafe for SwitchPolicy
impl Send for SwitchPolicy
impl Sync for SwitchPolicy
impl Unpin for SwitchPolicy
impl UnsafeUnpin for SwitchPolicy
impl UnwindSafe for SwitchPolicy
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