Struct rust_tdlib::client::client::ClientBuilder [−][src]
Implementations
impl<R> ClientBuilder<R> where
R: TdLibClient + Clone,
[src]
R: TdLibClient + Clone,
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]
R: TdLibClient + Clone,
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]
R: Send,
impl<R> Sync for ClientBuilder<R> where
R: Sync,
[src]
R: Sync,
impl<R> Unpin for ClientBuilder<R> where
R: Unpin,
[src]
R: Unpin,
impl<R> !UnwindSafe for ClientBuilder<R>
[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>,