pub struct VkBotConfig {
pub long_poll_timeout: u64,
pub max_concurrent_handlers: usize,
pub auto_reconnect: bool,
pub reconnect_delay: u64,
pub max_reconnect_attempts: u32,
pub log_updates: bool,
}Expand description
Bot configuration
Fields§
§long_poll_timeout: u64Long Poll wait timeout in seconds (default: 25)
max_concurrent_handlers: usizeMaximum number of concurrent handlers (default: 10)
auto_reconnect: boolEnable automatic reconnection (default: true)
reconnect_delay: u64Reconnection delay in seconds (default: 5)
max_reconnect_attempts: u32Maximum reconnection attempts (default: 10)
log_updates: boolLog updates (default: false)
Trait Implementations§
Source§impl Clone for VkBotConfig
impl Clone for VkBotConfig
Source§fn clone(&self) -> VkBotConfig
fn clone(&self) -> VkBotConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VkBotConfig
impl Debug for VkBotConfig
Auto Trait Implementations§
impl Freeze for VkBotConfig
impl RefUnwindSafe for VkBotConfig
impl Send for VkBotConfig
impl Sync for VkBotConfig
impl Unpin for VkBotConfig
impl UnwindSafe for VkBotConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more