pub enum Capture {
Captured {
shell: PathBuf,
elapsed_ms: u64,
},
Timeout {
shell: PathBuf,
limit_ms: u64,
},
NoPath {
shell: PathBuf,
elapsed_ms: u64,
},
StartFailed {
shell: PathBuf,
error: String,
},
Terminal,
Disabled,
Registry,
Other {
reason: String,
},
}Expand description
The result of asking the login shell (or, on Windows, the registry) for
the PATH a terminal has.
Variants§
Captured
The login shell printed its PATH.
Timeout
The login shell did not print its PATH within the limit.
NoPath
The login shell started but printed no PATH between the markers.
StartFailed
The login shell could not start; error is the io::ErrorKind text
only (e.g. “entity not found”), never paths or env.
Terminal
Not attempted: started from a terminal.
Disabled
Not attempted: SUBSPACE_GUI_LOGIN_PATH=0.
Registry
Windows: the registry supplied Path.
Other
Any other failure (Windows registry errors), reason text without env values.
Implementations§
Source§impl Capture
impl Capture
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Capture
impl<'de> Deserialize<'de> for Capture
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 Capture
impl StructuralPartialEq for Capture
Auto Trait Implementations§
impl Forget for Capture
impl Freeze for Capture
impl Move for Capture
impl RefUnwindSafe for Capture
impl Send for Capturewhere
RawVecInner: Send,
impl Sync for Capturewhere
RawVecInner: Sync,
impl Unpin for Capture
impl UnsafeUnpin for Capture
impl UnwindSafe for Capturewhere
RawVecInner: UnwindSafe,
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