[−][src]Struct tgbot::longpoll::LongPollOptions
Options for long polling
Methods
impl LongPollOptions
[src]
pub fn limit(self, limit: Integer) -> Self
[src]
Limits the number of updates to be retrieved
Values between 1—100 are accepted
Defaults to 100
pub fn poll_timeout(self, poll_timeout: Duration) -> Self
[src]
Timeout for long polling
0 - usual short polling
Defaults to 10
Should be positive, short polling should be used for testing purposes only
pub fn error_timeout(self, error_timeout: u64) -> Self
[src]
Timeout in seconds when an error has occurred
Defaults to 5
pub fn allowed_update(self, allowed_update: AllowedUpdate) -> Self
[src]
Adds a type of updates you want your bot to receive
Trait Implementations
impl Clone for LongPollOptions
[src]
fn clone(&self) -> LongPollOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LongPollOptions
[src]
impl Default for LongPollOptions
[src]
impl Eq for LongPollOptions
[src]
impl PartialEq<LongPollOptions> for LongPollOptions
[src]
fn eq(&self, other: &LongPollOptions) -> bool
[src]
fn ne(&self, other: &LongPollOptions) -> bool
[src]
impl StructuralEq for LongPollOptions
[src]
impl StructuralPartialEq for LongPollOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for LongPollOptions
impl Send for LongPollOptions
impl Sync for LongPollOptions
impl Unpin for LongPollOptions
impl UnwindSafe for LongPollOptions
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,