pub struct App<H, HI> { /* private fields */ }
Expand description
The main entry point.
Implements the UpdateHandler
trait, so you can use it
in crate::handler::LongPoll
or crate::handler::WebhookServer.
Wraps an update into the HandlerInput
struct and passes it to the inner handler.
Use crate::Chain
struct to configure multiple handlers.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<H, HI> Freeze for App<H, HI>where
H: Freeze,
impl<H, HI> !RefUnwindSafe for App<H, HI>
impl<H, HI> Send for App<H, HI>
impl<H, HI> Sync for App<H, HI>
impl<H, HI> Unpin for App<H, HI>
impl<H, HI> !UnwindSafe for App<H, HI>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more