Struct rust_tdlib::client::client::ClientBuilder[][src]

pub struct ClientBuilder<R> where
    R: TdLibClient + Clone
{ /* fields omitted */ }

Implementations

impl<R> ClientBuilder<R> where
    R: TdLibClient + Clone
[src]

pub fn with_updates_sender(self, updates_sender: Sender<Update>) -> Self[src]

If you want to receive Telegram updates (messages, channels, etc; see crate::types::Update), you must set mpsc::Sender here.

pub fn with_tdlib_parameters(self, tdlib_parameters: TdlibParameters) -> Self[src]

Base parameters for your TDlib instance.

pub fn build(self) -> RTDResult<Client<R>>[src]

Trait Implementations

impl<R: Debug> Debug for ClientBuilder<R> where
    R: TdLibClient + Clone
[src]

impl Default for ClientBuilder<TdJson>[src]

Auto Trait Implementations

impl<R> !RefUnwindSafe for ClientBuilder<R>[src]

impl<R> Send for ClientBuilder<R> where
    R: Send
[src]

impl<R> Sync for ClientBuilder<R> where
    R: Sync
[src]

impl<R> Unpin for ClientBuilder<R> where
    R: Unpin
[src]

impl<R> !UnwindSafe for ClientBuilder<R>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,