pub enum Run {
Program(PathBuf),
Page(PathBuf),
PageHost(PathBuf),
Simulator {
app: PathBuf,
bundle_id: String,
system: SimulatedSystem,
},
Android {
apk: PathBuf,
package: String,
adb: PathBuf,
forward: Option<(PathBuf, String)>,
},
}Expand description
How bern run starts a built application.
Variants§
Program(PathBuf)
Start the program and wait until it exits.
Page(PathBuf)
Serve the directory on the loopback interface and open its
index.html in the browser.
PageHost(PathBuf)
Start the program, which serves its own page and prints the address
on a line open <address>; open that address in the browser and
wait until the program exits.
Simulator
Install the app bundle into a booted simulator of system, start it
there and wait until it exits.
Android
Install the APK on the Android device adb reaches, start its
activity and show its log until it exits.
Trait Implementations§
impl Eq for Run
impl StructuralPartialEq for Run
Auto Trait Implementations§
impl Freeze for Run
impl RefUnwindSafe for Run
impl Send for Run
impl Sync for Run
impl Unpin for Run
impl UnsafeUnpin for Run
impl UnwindSafe for Run
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.