pub struct RelaunchOptions { /* private fields */ }Expand description
Overrides for an orderly application relaunch.
Unspecified values preserve the current executable, arguments (excluding argument zero), and working directory. Environment variables are inherited when the prepared request is spawned.
Implementations§
Source§impl RelaunchOptions
impl RelaunchOptions
pub fn new() -> Self
pub fn executable(self, executable: impl Into<PathBuf>) -> Self
pub fn arguments<I, S>(self, arguments: I) -> Self
pub fn without_arguments(self) -> Self
pub fn working_directory(self, directory: impl Into<PathBuf>) -> Self
pub fn executable_override(&self) -> Option<&Path>
pub fn argument_override(&self) -> Option<&[OsString]>
pub fn working_directory_override(&self) -> Option<&Path>
Sourcepub fn prepare(self) -> Result<RelaunchRequest>
pub fn prepare(self) -> Result<RelaunchRequest>
Resolve inherited process values and validate the complete bounded request.
Trait Implementations§
Source§impl Clone for RelaunchOptions
impl Clone for RelaunchOptions
Source§impl Debug for RelaunchOptions
impl Debug for RelaunchOptions
Source§impl Default for RelaunchOptions
impl Default for RelaunchOptions
impl Eq for RelaunchOptions
Source§impl PartialEq for RelaunchOptions
impl PartialEq for RelaunchOptions
impl StructuralPartialEq for RelaunchOptions
Auto Trait Implementations§
impl Forget for RelaunchOptions
impl Freeze for RelaunchOptions
impl Move for RelaunchOptions
impl RefUnwindSafe for RelaunchOptions
impl Send for RelaunchOptions
impl Sync for RelaunchOptions
impl Unpin for RelaunchOptions
impl UnsafeUnpin for RelaunchOptions
impl UnwindSafe for RelaunchOptions
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