pub struct PersistentProcess { /* private fields */ }Expand description
Running persistent process.
Implementations§
Source§impl PersistentProcess
impl PersistentProcess
Sourcepub fn wait(self) -> AppResult<ProcessResult>
pub fn wait(self) -> AppResult<ProcessResult>
Wait for the persistent process to exit naturally.
Sourcepub fn shutdown(self) -> AppResult<ShutdownOutcome>
pub fn shutdown(self) -> AppResult<ShutdownOutcome>
Gracefully stop the persistent process.
Trait Implementations§
Source§impl Debug for PersistentProcess
impl Debug for PersistentProcess
Source§impl Drop for PersistentProcess
impl Drop for PersistentProcess
Auto Trait Implementations§
impl !RefUnwindSafe for PersistentProcess
impl !UnwindSafe for PersistentProcess
impl Freeze for PersistentProcess
impl Send for PersistentProcess
impl Sync for PersistentProcess
impl Unpin for PersistentProcess
impl UnsafeUnpin for PersistentProcess
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