Struct rust_tdlib::client::client::ClientBuilder [−][src]
pub struct ClientBuilder<R> where
R: TdLibClient + Clone, { /* fields omitted */ }
Implementations
If you want to receive Telegram updates (messages, channels, etc; see crate::types::Update
),
you must set mpsc::Sender here.
If you want to receive all (AuthorizationState)[crate::types::authorization_state::AuthorizationState] changes you have to specify positive number of (channel)tokio::sync::mpsc::channel size. Channel will be used to send state changes.
Base parameters for your TDlib instance.
Trait Implementations
Auto Trait Implementations
impl<R> !RefUnwindSafe for ClientBuilder<R>
impl<R> Send for ClientBuilder<R> where
R: Send,
impl<R> Sync for ClientBuilder<R> where
R: Sync,
impl<R> Unpin for ClientBuilder<R> where
R: Unpin,
impl<R> !UnwindSafe for ClientBuilder<R>