Struct rust_tdlib::client::worker::Worker [−][src]
pub struct Worker<A, S> where
A: AuthStateHandler + Send + Sync + 'static,
S: TdLibClient + Send + Sync + Clone + 'static, { /* fields omitted */ }
Expand description
The main object in all interactions. You have to [start](crate::client::worker::Worker::start] worker and bind each client with worker using auth_client.
Implementations
pub async fn auth_client(
&mut self,
client: Client<T>
) -> RTDResult<(JoinHandle<ClientState>, Client<T>)>
[src]
pub async fn auth_client(
&mut self,
client: Client<T>
) -> RTDResult<(JoinHandle<ClientState>, Client<T>)>
[src]Binds client with worker and runs authorization routines. Method returns error if worker is not running.
Determines that the worker is running.
Starts interaction with TDLib. It returns JoinHandle which allows you to handle worker state.
Trait Implementations
Auto Trait Implementations
impl<A, S> !RefUnwindSafe for Worker<A, S>
impl<A, S> !UnwindSafe for Worker<A, S>
Blanket Implementations
Mutably borrows from an owned value. Read more