#[non_exhaustive]pub enum NotOpened {
Automation {
said: String,
},
Failed {
program: String,
said: String,
},
NoTerminal {
tried: Vec<String>,
line: String,
},
Script(Error),
}Expand description
Why the terminal didn’t open.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Automation
macOS: this app isn’t allowed to control Terminal (the Apple-event refusal -1743): the
Automation permission, in System Settings › Privacy & Security › Automation.
Failed
The program that opens the window failed, or didn’t start.
NoTerminal
Linux: no terminal emulator started; line is the command to run by hand.
Fields
Script(Error)
Windows: the console’s script couldn’t be written.
Trait Implementations§
Source§impl Error for NotOpened
impl Error for NotOpened
1.30.0 · 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 !RefUnwindSafe for NotOpened
impl !UnwindSafe for NotOpened
impl Forget for NotOpened
impl Freeze for NotOpened
impl Move for NotOpened
impl Send for NotOpened
impl Sync for NotOpened
impl Unpin for NotOpened
impl UnsafeUnpin for NotOpened
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