pub struct Router<R, S, T>where
R: Into<Action<ChatAction>>,
T: TelegramClient,{ /* private fields */ }Implementations§
source§impl<R: Into<Action<ChatAction>>, S: Clone, T: TelegramClient> Router<R, S, T>
impl<R: Into<Action<ChatAction>>, S: Clone, T: TelegramClient> Router<R, S, T>
pub fn new(client: T) -> Self
pub fn add_chat_handler(&mut self, h: ChatHandler<R, S, T>)
pub async fn handle_action( &self, chat_id: i64, action: ChatAction ) -> Result<()>
pub async fn start(&mut self)
Auto Trait Implementations§
impl<R, S, T> !RefUnwindSafe for Router<R, S, T>
impl<R, S, T> Send for Router<R, S, T>where S: Send,
impl<R, S, T> Sync for Router<R, S, T>where S: Sync,
impl<R, S, T> Unpin for Router<R, S, T>where S: Unpin,
impl<R, S, T> !UnwindSafe for Router<R, S, T>
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