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

pub struct ClientBuilder<A> where
    A: AuthStateHandler + Send + Sync + 'static, 
{ /* fields omitted */ }

Implementations

impl<A> ClientBuilder<A> where
    A: AuthStateHandler + Send + Sync + 'static, 
[src]

pub fn with_tdlib_verbosity_level(self, tdlib_verbosity_level: i32) -> Self[src]

TDlib log verbosity level See tdlib method documentation for details

pub fn with_tdlib_log_file_path(self, tdlib_log_file_path: &str) -> Self[src]

TDlib log file path See tdlib method documentation for details.

pub fn with_tdlib_log_max_file_size(self, tdlib_log_max_file_size: i64) -> Self[src]

TDlib log max file size See tdlib method documentation for details.

pub fn with_read_updates_timeout(self, read_updates_timeout: f64) -> Self[src]

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

If you want to receive real-time updates (new messages, calls, etc.) you have to receive them with tokio::mpsc::Receiver

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

Base parameters for your TDlib instance.

pub fn with_auth_state_handler<N>(
    self,
    auth_state_handler: N
) -> ClientBuilder<N> where
    N: AuthStateHandler + Send + Sync + 'static, 
[src]

AuthStateHandler allows you to handle particular "auth states", such as WaitPassword, WaitPhoneNumber and so on. See AuthorizationState.

pub fn build(self) -> RTDResult<Client<A, RawApi>>[src]

Trait Implementations

impl<A: Debug> Debug for ClientBuilder<A> where
    A: AuthStateHandler + Send + Sync + 'static, 
[src]

impl Default for ClientBuilder<ConsoleAuthStateHandler>[src]

pub fn default() -> Self[src]

Provides default implementation with ConsoleAuthStateHandler

Auto Trait Implementations

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

impl<A> Send for ClientBuilder<A>[src]

impl<A> Sync for ClientBuilder<A>[src]

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

impl<A> !UnwindSafe for ClientBuilder<A>[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>,