nexus-rt 2.0.2

Single-threaded, event-driven runtime primitives with pre-resolved dispatch
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
error[E0277]: this function cannot be converted into a handler
  --> tests/ui/wrong_param_order.rs:24:32
   |
24 |     register_handler::<u32, _>(bad_order, &reg);
   |     -------------------------- ^^^^^^^^^ the trait `IntoHandler<u32, _>` is not implemented for fn item `for<'a> fn(u32, Res<'a, Config>) {bad_order}`
   |     |
   |     required by a bound introduced by this call
   |
   = note: handler signature: `fn(Res<A>, ResMut<B>, ..., Event)` — resources first, event last
   = note: closures with resource parameters (Res<T>, ResMut<T>) are not supported — use a named `fn`
   = note: arity-0 closures (`fn(Event)` with no resources) ARE supported
note: required by a bound in `register_handler`
  --> tests/ui/wrong_param_order.rs:14:35
   |
14 | fn register_handler<E, P>(f: impl IntoHandler<E, P>, registry: &nexus_rt::Registry) {
   |                                   ^^^^^^^^^^^^^^^^^ required by this bound in `register_handler`