Struct simple_on_shutdown::OnShutdownCallback [−][src]
pub struct OnShutdownCallback(_);
Expand description
PRIVATE! Use on_shutdown
.
Simple type that holds a FnOnce
-closure (callback). The FnOnce
-closure gets invoked during drop()
.
This works also fine with applications that do gracefully shutdown via signals, like SIGTERM.
Implementations
Trait Implementations
impl Drop for OnShutdownCallback
[src]
impl Drop for OnShutdownCallback
[src]