pub struct Config {
pub base_url: Url,
pub timeout: Duration,
pub max_retries: usize,
pub retry_delay: Duration,
pub max_retry_delay: Duration,
pub user_agent: String,
}Expand description
Configuration for the Huawei Dongle API client.
Controls connection parameters, retry behavior, and HTTP settings.
Fields§
§base_url: UrlBase URL of the device (e.g., “http://192.168.8.1”)
timeout: DurationRequest timeout for HTTP operations
max_retries: usizeMaximum number of retry attempts for failed requests
retry_delay: DurationInitial delay before first retry
max_retry_delay: DurationMaximum delay between retries (for exponential backoff)
user_agent: StringUser agent string sent with requests
Implementations§
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