Skip to main content

Module handler

Module handler 

Source

Structs§

FnHandler
Wraps a closure as a HeartbeatTimeoutHandler, allowing per-component custom behaviour to be defined inline in main.rs without needing a dedicated struct.
FnMissedHandler
Wraps a FnMut(&str) closure as a HeartbeatMissedHandler.
ShutdownOnTimeout
Convenience handler: initiates a graceful container shutdown.

Traits§

HeartbeatMissedHandler
Called by the sender on every heartbeat tick where a target has not responded within response_timeout_ms. Fires repeatedly while the target remains silent.
HeartbeatTimeoutHandler
Called by the receiver watchdog when no heartbeat request has arrived within the timeout window.