pub struct WindowsSignalHandler;Expand description
Windows signal handler implementation
Handles Ctrl+C and Ctrl+Break on Windows.
Implementations§
Trait Implementations§
Source§impl Default for WindowsSignalHandler
Available on Windows only.
impl Default for WindowsSignalHandler
Available on Windows only.
Source§impl SystemSignals for WindowsSignalHandler
Available on Windows only.
impl SystemSignals for WindowsSignalHandler
Available on Windows only.
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 WindowsSignalHandler
impl RefUnwindSafe for WindowsSignalHandler
impl Send for WindowsSignalHandler
impl Sync for WindowsSignalHandler
impl Unpin for WindowsSignalHandler
impl UnwindSafe for WindowsSignalHandler
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