pub(crate) fn new(
        auth_state_handler: A,
        read_updates_timeout: f64,
        channels_send_timeout: f64,
        tdlib_client: T,
    ) -> Self {
        let run_flag = Arc::new(AtomicBool::new(false));
        let clients: ClientsMap<T> = HashMap::new();

        Self {
            run_flag,
            tdlib_client,
            read_updates_timeout: time::Duration::from_secs_f64(read_updates_timeout),
            channels_send_timeout: time::Duration::from_secs_f64(channels_send_timeout),
            auth_state_handler: Arc::new(auth_state_handler),
            clients: Arc::new(RwLock::new(clients)),
        }
    }
// Client must be created only with builder
Client must be created only with builder
Client must be created only with builder
pub(crate) fn new(
        auth_state_handler: A,
        read_updates_timeout: f64,
        channels_send_timeout: f64,
        tdlib_client: T,
    ) -> Self {
        let run_flag = Arc::new(AtomicBool::new(false));
        let clients: ClientsMap<T> = HashMap::new();
        Self {
            run_flag,
            tdlib_client,
            read_updates_timeout: time::Duration::from_secs_f64(read_updates_timeout),
            channels_send_timeout: time::Duration::from_secs_f64(channels_send_timeout),
            auth_state_handler: Arc::new(auth_state_handler),
            clients: Arc::new(RwLock::new(clients)),
        }
    }
pub ( crate ) fn new ( auth_state_handler : A , read_updates_timeout : f64 , channels_send_timeout : f64 , tdlib_client : T , ) -> Self { let run_flag = Arc :: new ( AtomicBool :: new ( false ) ) ; let clients : ClientsMap < T > = HashMap :: new ( ) ; Self { run_flag , tdlib_client , read_updates_timeout : time :: Duration :: from_secs_f64 ( read_updates_timeout ) , channels_send_timeout : time :: Duration :: from_secs_f64 ( channels_send_timeout ) , auth_state_handler : Arc :: new ( auth_state_handler ) , clients : Arc :: new ( RwLock :: new ( clients ) ) , } }
Client must be created only with builder
Client must be created only with builder
auth_state_handler
A
read_updates_timeout
f64
channels_send_timeout
f64
tdlib_client
T
auth_state_handler
A
read_updates_timeout
f64
channels_send_timeout
f64
tdlib_client
T