pub struct MIPClientOptions {
pub client_id: String,
pub host: String,
pub port: u16,
pub auto_reconnect: bool,
pub reconnect_delay_ms: u64,
pub max_reconnect_attempts: u32,
pub ping_interval_ms: u64,
}Expand description
Configuration options for the MIP client
Fields§
§client_id: StringUnique client identifier (optional)
host: StringServer host address
port: u16Server port number
auto_reconnect: boolAuto-reconnect on disconnect
reconnect_delay_ms: u64Reconnect delay in milliseconds
max_reconnect_attempts: u32Maximum reconnection attempts (0 = infinite)
ping_interval_ms: u64Ping interval in milliseconds (0 = disabled)
Implementations§
Source§impl MIPClientOptions
impl MIPClientOptions
Sourcepub fn client_id(self, client_id: impl Into<String>) -> Self
pub fn client_id(self, client_id: impl Into<String>) -> Self
Client ID (optional, can be used for authentication or tracking)
Sourcepub fn auto_reconnect(self, enabled: bool) -> Self
pub fn auto_reconnect(self, enabled: bool) -> Self
Set auto-reconnect option
Sourcepub fn reconnect_delay_ms(self, delay: u64) -> Self
pub fn reconnect_delay_ms(self, delay: u64) -> Self
Set reconnect delay in milliseconds
Sourcepub fn max_reconnect_attempts(self, attempts: u32) -> Self
pub fn max_reconnect_attempts(self, attempts: u32) -> Self
Set maximum reconnection attempts
Sourcepub fn ping_interval_ms(self, interval: u64) -> Self
pub fn ping_interval_ms(self, interval: u64) -> Self
Set ping interval in milliseconds
Trait Implementations§
Source§impl Clone for MIPClientOptions
impl Clone for MIPClientOptions
Source§fn clone(&self) -> MIPClientOptions
fn clone(&self) -> MIPClientOptions
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 MIPClientOptions
impl Debug for MIPClientOptions
Auto Trait Implementations§
impl Freeze for MIPClientOptions
impl RefUnwindSafe for MIPClientOptions
impl Send for MIPClientOptions
impl Sync for MIPClientOptions
impl Unpin for MIPClientOptions
impl UnsafeUnpin for MIPClientOptions
impl UnwindSafe for MIPClientOptions
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