Struct rust_tdlib::client::worker::WorkerBuilder [−][src]
Implementations
impl<A, T> WorkerBuilder<A, T> where
A: AuthStateHandler + Send + Sync + 'static,
T: TdLibClient + Send + Sync + Clone + 'static,
[src]
A: AuthStateHandler + Send + Sync + 'static,
T: TdLibClient + Send + Sync + Clone + 'static,
pub fn with_channels_send_timeout(self, timeout: f64) -> Self
[src]
Specifies timeout which will be used during sending to tokio::sync::mpsc.
pub fn with_read_updates_timeout(self, read_updates_timeout: f64) -> Self
[src]
pub fn with_auth_state_handler<N>(
self,
auth_state_handler: N
) -> WorkerBuilder<N, T> where
N: AuthStateHandler + Send + Sync + 'static,
[src]
self,
auth_state_handler: N
) -> WorkerBuilder<N, T> 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<Worker<A, T>>
[src]
Trait Implementations
impl<A: Debug, T: Debug> Debug for WorkerBuilder<A, T> where
A: AuthStateHandler + Send + Sync + 'static,
T: TdLibClient + Send + Sync + Clone + 'static,
[src]
A: AuthStateHandler + Send + Sync + 'static,
T: TdLibClient + Send + Sync + Clone + 'static,
impl Default for WorkerBuilder<ConsoleAuthStateHandler, TdJson>
[src]
fn default() -> Self
[src]
Provides default implementation with ConsoleAuthStateHandler
Auto Trait Implementations
impl<A, T> RefUnwindSafe for WorkerBuilder<A, T> where
A: RefUnwindSafe,
T: RefUnwindSafe,
[src]
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<A, T> Send for WorkerBuilder<A, T>
[src]
impl<A, T> Sync for WorkerBuilder<A, T>
[src]
impl<A, T> Unpin for WorkerBuilder<A, T> where
A: Unpin,
T: Unpin,
[src]
A: Unpin,
T: Unpin,
impl<A, T> UnwindSafe for WorkerBuilder<A, T> where
A: UnwindSafe,
T: UnwindSafe,
[src]
A: UnwindSafe,
T: UnwindSafe,
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>,