pub struct ShutdownSignalHandler { /* private fields */ }
Expand description
Shutdown signal handler
Implementations§
Source§impl ShutdownSignalHandler
impl ShutdownSignalHandler
pub fn new() -> Self
pub fn register_signal_handler(&mut self, signal_type: SignalType)
pub fn set_shutdown_config(&mut self, config: GracefulShutdownConfig)
pub fn get_shutdown_config(&self) -> &GracefulShutdownConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShutdownSignalHandler
impl RefUnwindSafe for ShutdownSignalHandler
impl Send for ShutdownSignalHandler
impl Sync for ShutdownSignalHandler
impl Unpin for ShutdownSignalHandler
impl UnwindSafe for ShutdownSignalHandler
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