[−][src]Struct rust_tdlib::client::client::ClientBuilder
Implementations
impl<A> ClientBuilder<A> where
A: AuthStateHandler + Send + Sync + 'static,
[src]
A: AuthStateHandler + Send + Sync + 'static,
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]
self,
auth_state_handler: N
) -> ClientBuilder<N> where
N: AuthStateHandler + Send + Sync + 'static,
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]
A: AuthStateHandler + Send + Sync + 'static,
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]
A: Unpin,
impl<A> !UnwindSafe for ClientBuilder<A>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,