pub enum OpenEditorError {
NoEditorFound,
EditorCallError {
exit_code: Option<i32>,
stderr: String,
},
CommandFail {
error: Error,
},
EditorNotFound {
binary_path: PathBuf,
},
EditorNotExecutable {
binary_path: PathBuf,
error: Option<Error>,
},
FileManipulationFail(Error),
TempFileCleanupFail(String),
}Expand description
Errors that can occur when trying to open an editor.
Variants§
NoEditorFound
EditorCallError
CommandFail
EditorNotFound
EditorNotExecutable
FileManipulationFail(Error)
TempFileCleanupFail(String)
Trait Implementations§
Source§impl Debug for OpenEditorError
impl Debug for OpenEditorError
Source§impl Display for OpenEditorError
impl Display for OpenEditorError
Source§impl Error for OpenEditorError
impl Error for OpenEditorError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for OpenEditorError
impl !RefUnwindSafe for OpenEditorError
impl Send for OpenEditorError
impl Sync for OpenEditorError
impl Unpin for OpenEditorError
impl !UnwindSafe for OpenEditorError
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