pub struct Config {
pub token: String,
pub client: Option<Client>,
pub ping_interval: f64,
pub pong_timeout: f64,
pub reconnect_backoff_max: f64,
pub max_reconnect_attempts: u32,
}Expand description
Configuration for WebexMessageHandler.
Fields§
§token: StringWebex bot or user access token (required).
client: Option<Client>Optional HTTP client for proxy support or custom connection handling. If None, a default client will be created.
ping_interval: f64Mercury ping interval in seconds (default: 15).
pong_timeout: f64Pong response timeout in seconds (default: 14).
reconnect_backoff_max: f64Max reconnect backoff in seconds (default: 32).
max_reconnect_attempts: u32Max consecutive reconnection attempts (default: 10).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl !UnwindSafe for Config
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