pub type OperationState = Option<Box<dyn Any + Send>>;
Whatever Hooks::on_operation_start hands the matching Hooks::on_operation_end.
Hooks::on_operation_start
Hooks::on_operation_end
pub enum OperationState { None, Some(Box<dyn Any + Send>), }
No value.
Some value of type T.
T