[][src]Struct carapax::prelude::UpdatesStreamOptions

pub struct UpdatesStreamOptions { /* fields omitted */ }

Update stream options

Methods

impl UpdatesStreamOptions[src]

pub fn limit(self, limit: i64) -> UpdatesStreamOptions[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: i64) -> UpdatesStreamOptions[src]

Timeout in seconds 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) -> UpdatesStreamOptions[src]

Timeout in seconds when an error has occurred

Defaults to 5

pub fn allowed_update(
    self,
    allowed_update: AllowedUpdate
) -> UpdatesStreamOptions
[src]

Adds a type of updates you want your bot to receive

Trait Implementations

impl Default for UpdatesStreamOptions[src]

impl Eq for UpdatesStreamOptions[src]

impl Debug for UpdatesStreamOptions[src]

impl PartialEq<UpdatesStreamOptions> for UpdatesStreamOptions[src]

impl Clone for UpdatesStreamOptions[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T