pub struct RadioConfig {
pub url: String,
pub auto_reconnect: bool,
pub max_reconnect_attempts: u32,
pub reconnect_delay_ms: u64,
pub max_reconnect_delay_ms: u64,
pub heartbeat_interval_ms: u64,
}Expand description
Radio Protocol client configuration
Fields§
§url: StringWebSocket server URL
auto_reconnect: boolAuto-reconnect on disconnect
max_reconnect_attempts: u32Maximum reconnection attempts (0 = unlimited)
reconnect_delay_ms: u64Initial reconnection delay (milliseconds)
max_reconnect_delay_ms: u64Maximum reconnection delay (milliseconds)
heartbeat_interval_ms: u64Heartbeat interval (milliseconds)
Implementations§
Trait Implementations§
Source§impl Clone for RadioConfig
impl Clone for RadioConfig
Source§fn clone(&self) -> RadioConfig
fn clone(&self) -> RadioConfig
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 RadioConfig
impl Debug for RadioConfig
Auto Trait Implementations§
impl Freeze for RadioConfig
impl RefUnwindSafe for RadioConfig
impl Send for RadioConfig
impl Sync for RadioConfig
impl Unpin for RadioConfig
impl UnsafeUnpin for RadioConfig
impl UnwindSafe for RadioConfig
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