pub struct MockAdapterConfig {
pub connection_failure_rate: f32,
pub connection_latency: Duration,
pub scan_latency: Duration,
pub supports_coded_phy: bool,
pub supports_extended_advertising: bool,
pub max_mtu: u16,
pub max_connections: u8,
}Expand description
Configuration for mock adapter behavior
Fields§
§connection_failure_rate: f32Simulate connection failures (0.0 = never, 1.0 = always)
connection_latency: DurationSimulated connection latency
scan_latency: DurationSimulated scan latency before discovering devices
supports_coded_phy: boolSupport Coded PHY
supports_extended_advertising: boolSupport extended advertising
max_mtu: u16Maximum MTU
max_connections: u8Maximum connections
Trait Implementations§
Source§impl Clone for MockAdapterConfig
impl Clone for MockAdapterConfig
Source§fn clone(&self) -> MockAdapterConfig
fn clone(&self) -> MockAdapterConfig
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 MockAdapterConfig
impl Debug for MockAdapterConfig
Auto Trait Implementations§
impl Freeze for MockAdapterConfig
impl RefUnwindSafe for MockAdapterConfig
impl Send for MockAdapterConfig
impl Sync for MockAdapterConfig
impl Unpin for MockAdapterConfig
impl UnwindSafe for MockAdapterConfig
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