#[derive(Handler)]
{
// Attributes available to this derive:
#[state]
}
Expand description
Implements HandleExit for your Handler.
§Usage
ⓘ
#[derive(HandleExit)]
struct MyHandler { .. }Which generates the following implementation:
ⓘ
impl HandleExit for MyHandler {
type Exit = ExitReason<MyHandler::Exception>;
async fn handle_exit(
self,
state: &mut Self::State,
reason: ExitReason<Self::Exception>,
) -> ExitFlow<Self> {
ExitFlow::Exit(reason)
}
}