[][src]Function hexchat::add_reply_listener_until

pub fn add_reply_listener_until<T, U, F>(priority: Priority, function: F) where
    T: ServerReply,
    U: ServerReply,
    F: Fn(T, DateTime<Utc>) -> EatMode + 'static, 

Adds a reply listener as defined in add_reply_listener, and removes it after receiving the first U.

This will not eat the U event, and if you wish to listen to it it must be listened to separately (likely using add_reply_listener_once).