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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.