pub struct Api { /* private fields */ }
Implementations§
Source§impl Api
impl Api
pub fn builder() -> ApiBuilder
pub fn new(tdlib: Tdlib) -> Self
pub fn event() -> EventApi
pub fn event_with_tdlib(tdlib: Tdlib) -> EventApi
pub fn event_with_api(api: Api) -> EventApi
pub fn rasync() -> AsyncApi
pub fn rasync_with_tdlib(tdlib: Tdlib) -> AsyncApi
pub fn rasync_with_api(api: Api) -> AsyncApi
pub fn event_api(&self) -> EventApi
pub fn rasync_api(&self) -> AsyncApi
pub fn send<Fnc: RFunction>(&self, fnc: Fnc) -> RTDResult<()>
pub fn receive(&self, timeout: f64) -> Option<String>
pub fn execute<Fnc: RFunction>(&self, fnc: Fnc) -> RTDResult<Option<String>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Api
impl RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl UnwindSafe for Api
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