Struct telegram_client::api::Api [−][src]
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
Auto Trait Implementations
impl RefUnwindSafe for Api[src]
impl Send for Api[src]
impl Sync for Api[src]
impl Unpin for Api[src]
impl UnwindSafe for Api[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,