pub struct ApplicationRestartRegistration { /* private fields */ }Expand description
An exclusive crate-managed lease for the current process registration.
Implementations§
Source§impl ApplicationRestartRegistration
impl ApplicationRestartRegistration
Sourcepub fn register(options: ApplicationRestartOptions) -> Result<Self>
pub fn register(options: ApplicationRestartOptions) -> Result<Self>
Registers this process for application restart.
Sourcepub fn update(&mut self, options: ApplicationRestartOptions) -> Result<()>
pub fn update(&mut self, options: ApplicationRestartOptions) -> Result<()>
Updates the command line and policies without releasing the lease.
Sourcepub fn unregister(self) -> Result<()>
pub fn unregister(self) -> Result<()>
Explicitly unregisters this process.
On failure the value remains armed and its destructor makes one best-effort retry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApplicationRestartRegistration
impl RefUnwindSafe for ApplicationRestartRegistration
impl Send for ApplicationRestartRegistration
impl Sync for ApplicationRestartRegistration
impl Unpin for ApplicationRestartRegistration
impl UnsafeUnpin for ApplicationRestartRegistration
impl UnwindSafe for ApplicationRestartRegistration
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