pub struct MaybeSwitch {
pub switch_to: Option<String>,
pub vars: Vec<(String, String)>,
}Fields§
§switch_to: Option<String>If non-empty, this indicates that the receiving attach process should hang up, then reattach to the given session name.
Session switching is incompatible with session name templates, so the attach process should exit and display an error to the user if it gets a MaybeSwitch telling to to switch to a specific session name.
vars: Vec<(String, String)>The shpool wide variable environment. The attach process should hang up and reattach if it has a session name template which produces a new result with this new environment.
Trait Implementations§
Source§impl Clone for MaybeSwitch
impl Clone for MaybeSwitch
Source§fn clone(&self) -> MaybeSwitch
fn clone(&self) -> MaybeSwitch
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 MaybeSwitch
impl Debug for MaybeSwitch
Source§impl Default for MaybeSwitch
impl Default for MaybeSwitch
Source§fn default() -> MaybeSwitch
fn default() -> MaybeSwitch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MaybeSwitch
impl<'de> Deserialize<'de> for MaybeSwitch
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
Auto Trait Implementations§
impl Freeze for MaybeSwitch
impl RefUnwindSafe for MaybeSwitch
impl Send for MaybeSwitch
impl Sync for MaybeSwitch
impl Unpin for MaybeSwitch
impl UnsafeUnpin for MaybeSwitch
impl UnwindSafe for MaybeSwitch
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