pub struct TelegramClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Client for TelegramClient
impl Client for TelegramClient
fn send_message<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
chat_id: &'life1 str,
data: &'life2 str,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn subscribe(&mut self, tx: Sender<Message>)
Source§impl Clone for TelegramClient
impl Clone for TelegramClient
Source§fn clone(&self) -> TelegramClient
fn clone(&self) -> TelegramClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TelegramClient
impl !RefUnwindSafe for TelegramClient
impl Send for TelegramClient
impl Sync for TelegramClient
impl Unpin for TelegramClient
impl UnsafeUnpin for TelegramClient
impl !UnwindSafe for TelegramClient
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