1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use crate::{types::Poll, Bot}; use std::sync::Arc; common! { /// The context for [`updated_poll`][handler] handlers. /// /// [handler]: ../event_loop/struct.EventLoop.html#method.updated_poll struct UpdatedPoll { /// The new state of the poll. poll: Poll, } } impl<C> UpdatedPoll<C> { pub(crate) const fn new(bot: Arc<Bot<C>>, poll: Poll) -> Self { Self { bot, poll, } } }