Struct relaunch::Trampoline
source · pub struct Trampoline { /* private fields */ }Expand description
The applicaiton relauncher, which is used to build the app bundle, launch it as a subprocess, and then wait for it to exit. Or if we are already running from within an app bundle, do nothing.
Implementations§
source§impl Trampoline
impl Trampoline
pub fn new(name: &str, ident: &str) -> Self
sourcepub fn name(&mut self, name: &str) -> &mut Self
pub fn name(&mut self, name: &str) -> &mut Self
Set the name of the app bundle. Overrides value provided to new().
sourcepub fn ident(&mut self, ident: &str) -> &mut Self
pub fn ident(&mut self, ident: &str) -> &mut Self
Set the app bundle ID. Overrides value provided to new().
sourcepub fn version(&mut self, version: &str) -> &mut Self
pub fn version(&mut self, version: &str) -> &mut Self
Set the app bundle version. Overrides the default value pulled from
CARGO_PKG_VERSION.
sourcepub fn is_bundled() -> bool
pub fn is_bundled() -> bool
Checks if the running process is an applicaiton bundle.
pub fn bundle(&self, location: InstallDir) -> Result<Application, IOError>
Auto Trait Implementations§
impl Freeze for Trampoline
impl RefUnwindSafe for Trampoline
impl Send for Trampoline
impl Sync for Trampoline
impl Unpin for Trampoline
impl UnwindSafe for Trampoline
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