[−][src]Struct tgbot::longpoll::LongPollOptions
Options for long polling
Implementations
impl LongPollOptions
[src]
pub fn limit(mut self: 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(mut self: 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(mut self: Self, error_timeout: u64) -> Self
[src]
Timeout in seconds when an error has occurred
Defaults to 5
pub fn allowed_update(mut self: Self, allowed_update: AllowedUpdate) -> Self
[src]
Adds a type of updates you want your bot to receive
Trait Implementations
impl Clone for LongPollOptions
[src]
pub fn clone(&self) -> LongPollOptions
[src]
pub 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]
pub fn eq(&self, other: &LongPollOptions) -> bool
[src]
pub fn ne(&self, other: &LongPollOptions) -> bool
[src]
impl StructuralEq for LongPollOptions
[src]
impl StructuralPartialEq for LongPollOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for LongPollOptions
[src]
impl Send for LongPollOptions
[src]
impl Sync for LongPollOptions
[src]
impl Unpin for LongPollOptions
[src]
impl UnwindSafe for LongPollOptions
[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<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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.
pub fn to_owned(&self) -> T
[src]
pub 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.
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>,