pub enum EditorRunOutcome {
Completed,
Aborted,
}Expand description
Outcome of running one editor candidate, abstracting over the raw
ExitStatus. This exists so the “ran but ended with no exit code” case (a
signal kill on Unix) is injectable in tests on every platform: on Windows
an ExitStatus always carries a code (even via ExitStatusExt::from_raw),
so that case cannot be fabricated from a status directly. The injected run
seam of launch_via therefore yields this enum rather than an
ExitStatus.
Variants§
Completed
Process finished (success, or any explicit exit code) - treat as the user having closed the editor.
Aborted
Process ended with no exit code (e.g. killed by a signal) - try the next candidate.
Trait Implementations§
Source§impl Clone for EditorRunOutcome
impl Clone for EditorRunOutcome
Source§fn clone(&self) -> EditorRunOutcome
fn clone(&self) -> EditorRunOutcome
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 moreimpl Copy for EditorRunOutcome
Source§impl Debug for EditorRunOutcome
impl Debug for EditorRunOutcome
impl Eq for EditorRunOutcome
Source§impl PartialEq for EditorRunOutcome
impl PartialEq for EditorRunOutcome
impl StructuralPartialEq for EditorRunOutcome
Auto Trait Implementations§
impl Freeze for EditorRunOutcome
impl RefUnwindSafe for EditorRunOutcome
impl Send for EditorRunOutcome
impl Sync for EditorRunOutcome
impl Unpin for EditorRunOutcome
impl UnsafeUnpin for EditorRunOutcome
impl UnwindSafe for EditorRunOutcome
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