pub struct FnHandler(/* private fields */);Expand description
Wraps a closure as a HeartbeatTimeoutHandler, allowing per-component custom behaviour to be
defined inline in main.rs without needing a dedicated struct.
Implementations§
Trait Implementations§
Source§impl HeartbeatTimeoutHandler for FnHandler
impl HeartbeatTimeoutHandler for FnHandler
fn on_timeout(&self)
Auto Trait Implementations§
impl !RefUnwindSafe for FnHandler
impl !UnwindSafe for FnHandler
impl Freeze for FnHandler
impl Send for FnHandler
impl Sync for FnHandler
impl Unpin for FnHandler
impl UnsafeUnpin for FnHandler
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