Struct telegram_client::api::Api[][src]

pub struct Api { /* fields omitted */ }

Implementations

impl Api[src]

pub fn builder() -> ApiBuilder[src]

pub fn new(tdlib: Tdlib) -> Self[src]

pub fn event() -> EventApi[src]

pub fn event_with_tdlib(tdlib: Tdlib) -> EventApi[src]

pub fn event_with_api(api: Api) -> EventApi[src]

pub fn rasync() -> AsyncApi[src]

pub fn rasync_with_tdlib(tdlib: Tdlib) -> AsyncApi[src]

pub fn rasync_with_api(api: Api) -> AsyncApi[src]

pub fn event_api(&self) -> EventApi[src]

pub fn rasync_api(&self) -> AsyncApi[src]

pub fn send<Fnc: RFunction>(&self, fnc: Fnc) -> RTDResult<()>[src]

pub fn receive(&self, timeout: f64) -> Option<String>[src]

pub fn execute<Fnc: RFunction>(&self, fnc: Fnc) -> RTDResult<Option<String>>[src]

Trait Implementations

impl Clone for Api[src]

impl Debug for Api[src]

impl Default for Api[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.