diff --git a/src/dispatching/update_listeners/stateful_listener.rs b/src/dispatching/update_listeners/stateful_listener.rs index 2b36baa5..df32361c 100644 --- a/src/dispatching/update_listeners/stateful_listener.rs +++ b/src/dispatching/update_listeners/stateful_listener.rs @@ -25,25 +25,23 @@ pub struct StatefulListener { /// The function used as [`AsUpdateStream::as_stream`]. /// - /// Must be of type `for<'a> &'a mut St -> impl Stream + 'a` and callable by - /// `&mut`. + /// Must implement `for<'a> FnMut(&'a mut St) -> impl Stream + 'a`. pub stream: Assf, /// The function used as [`UpdateListener::stop_token`]. /// - /// Must be of type `for<'a> &'a mut St -> impl StopToken`. + /// Must implement `FnMut(&mut St) -> impl StopToken`. pub stop_token: Sf, /// The function used as [`UpdateListener::hint_allowed_updates`]. /// - /// Must be of type `for<'a, 'b> &'a mut St, &'b mut dyn Iterator -> ()`. + /// Must implement `FnMut(&mut St, &mut dyn Iterator)`. pub hint_allowed_updates: Option, /// The function used as [`UpdateListener::timeout_hint`]. /// - /// Must be of type `for<'a> &'a St -> Option` and callable by - /// `&`. + /// Must implement `Fn(&St) -> Option`. pub timeout_hint: Option, }