[−][src]Struct carapax::prelude::UpdatesStreamOptions
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]
self,
allowed_update: AllowedUpdate
) -> UpdatesStreamOptions
Adds a type of updates you want your bot to receive
Trait Implementations
impl Default for UpdatesStreamOptions
[src]
fn default() -> UpdatesStreamOptions
[src]
impl Debug for UpdatesStreamOptions
[src]
impl Eq for UpdatesStreamOptions
[src]
impl PartialEq<UpdatesStreamOptions> for UpdatesStreamOptions
[src]
fn eq(&self, other: &UpdatesStreamOptions) -> bool
[src]
fn ne(&self, other: &UpdatesStreamOptions) -> bool
[src]
impl Clone for UpdatesStreamOptions
[src]
fn clone(&self) -> UpdatesStreamOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for UpdatesStreamOptions
impl Sync for UpdatesStreamOptions
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,