#[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 NotOpenedwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
impl Move for NotOpened
impl Send for NotOpened
impl Sync for NotOpened
impl Unpin for NotOpened
impl UnsafeUnpin for NotOpenedwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
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