Struct teloxide_core::adaptors::throttle::Settings
source · #[non_exhaustive]pub struct Settings {
pub limits: Limits,
pub on_queue_full: Box<dyn FnMut(usize) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send>,
pub retry: bool,
pub check_slow_mode: bool,
}
Available on crate feature
throttle
only.Expand description
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.limits: Limits
§on_queue_full: Box<dyn FnMut(usize) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send>
§retry: bool
§check_slow_mode: bool