pub struct VkBotBuilder { /* private fields */ }Expand description
Bot builder
Implementations§
Source§impl VkBotBuilder
impl VkBotBuilder
Sourcepub fn long_poll_timeout(self, timeout: u64) -> Self
pub fn long_poll_timeout(self, timeout: u64) -> Self
Set Long Poll timeout
Sourcepub fn max_concurrent_handlers(self, max: usize) -> Self
pub fn max_concurrent_handlers(self, max: usize) -> Self
Set max concurrent handlers
Sourcepub fn auto_reconnect(self, enable: bool) -> Self
pub fn auto_reconnect(self, enable: bool) -> Self
Enable/disable auto reconnection
Sourcepub fn reconnect_delay(self, delay: u64) -> Self
pub fn reconnect_delay(self, delay: u64) -> Self
Set reconnection delay
Sourcepub fn max_reconnect_attempts(self, attempts: u32) -> Self
pub fn max_reconnect_attempts(self, attempts: u32) -> Self
Set max reconnection attempts
Sourcepub fn log_updates(self, enable: bool) -> Self
pub fn log_updates(self, enable: bool) -> Self
Enable/disable update logging
Trait Implementations§
Source§impl Debug for VkBotBuilder
impl Debug for VkBotBuilder
Source§impl Default for VkBotBuilder
impl Default for VkBotBuilder
Source§fn default() -> VkBotBuilder
fn default() -> VkBotBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VkBotBuilder
impl RefUnwindSafe for VkBotBuilder
impl Send for VkBotBuilder
impl Sync for VkBotBuilder
impl Unpin for VkBotBuilder
impl UnwindSafe for VkBotBuilder
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