pub struct NoOpSignalHandler;Expand description
No-op signal handler for testing
Never receives signals, allowing tests to control shutdown explicitly.
Implementations§
Trait Implementations§
Source§impl Default for NoOpSignalHandler
impl Default for NoOpSignalHandler
Source§impl SystemSignals for NoOpSignalHandler
impl SystemSignals for NoOpSignalHandler
Source§fn wait_for_signal(
&self,
_on_shutdown: ShutdownCallback,
) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>
fn wait_for_signal( &self, _on_shutdown: ShutdownCallback, ) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>
Wait for a shutdown signal and invoke the callback Read more
Auto Trait Implementations§
impl Freeze for NoOpSignalHandler
impl RefUnwindSafe for NoOpSignalHandler
impl Send for NoOpSignalHandler
impl Sync for NoOpSignalHandler
impl Unpin for NoOpSignalHandler
impl UnwindSafe for NoOpSignalHandler
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