#[non_exhaustive]pub enum NativeOpen {
Program {
program: String,
args: Vec<String>,
},
MacApp {
app: PathBuf,
args: Vec<String>,
},
Url {
url: String,
},
}Expand description
One way to open a VM in its hypervisor’s app: what to run, never through a shell.
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.
Program
Run program (a name on PATH, or a full path) with args, each passed as it is.
MacApp
Open the macOS app app on args (open -a <app> <args>…: a file or link it opens).
Url
Open url (https) in the default browser.
Implementations§
Source§impl NativeOpen
impl NativeOpen
Sourcepub fn need(&self) -> NativeNeed
pub fn need(&self) -> NativeNeed
What of the app this way needs on this computer.
Trait Implementations§
Source§impl Clone for NativeOpen
impl Clone for NativeOpen
Source§impl Debug for NativeOpen
impl Debug for NativeOpen
impl Eq for NativeOpen
Source§impl PartialEq for NativeOpen
impl PartialEq for NativeOpen
impl StructuralPartialEq for NativeOpen
Auto Trait Implementations§
impl Forget for NativeOpen
impl Freeze for NativeOpen
impl Move for NativeOpen
impl RefUnwindSafe for NativeOpen
impl Send for NativeOpen
impl Sync for NativeOpen
impl Unpin for NativeOpen
impl UnsafeUnpin for NativeOpen
impl UnwindSafe for NativeOpen
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.