pub enum ShutdownRequest {
CtrlC,
ParentProcessKilled(Pid),
ExeUninstalled(PathBuf),
Derived(Box<dyn Receivable<ShutdownSignal> + Send>),
}
Variants§
CtrlC
ParentProcessKilled(Pid)
ExeUninstalled(PathBuf)
Derived(Box<dyn Receivable<ShutdownSignal> + Send>)
Implementations§
Source§impl ShutdownRequest
impl ShutdownRequest
Sourcepub fn create_rx(
signals: impl IntoIterator<Item = ShutdownRequest>,
) -> Barrier<ShutdownSignal>
pub fn create_rx( signals: impl IntoIterator<Item = ShutdownRequest>, ) -> Barrier<ShutdownSignal>
Creates a receiver channel sent to once any of the signals are received. Note: does not handle ServiceStopped
Auto Trait Implementations§
impl Freeze for ShutdownRequest
impl !RefUnwindSafe for ShutdownRequest
impl Send for ShutdownRequest
impl !Sync for ShutdownRequest
impl Unpin for ShutdownRequest
impl !UnwindSafe for ShutdownRequest
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