pub struct FakeDeviceConfig {
pub start_passive_scan_fails: bool,
pub start_active_scan_fails: bool,
pub send_wlan_frame_fails: bool,
/* private fields */
}
Fields§
§start_passive_scan_fails: bool
§start_active_scan_fails: bool
§send_wlan_frame_fails: bool
Implementations§
Source§impl FakeDeviceConfig
impl FakeDeviceConfig
pub fn with_mock_query_response( self, mock_value: Result<WlanSoftmacQueryResponse, Status>, ) -> Self
pub fn with_mock_discovery_support( self, mock_value: Result<DiscoverySupport, Status>, ) -> Self
pub fn with_mock_mac_sublayer_support( self, mock_value: Result<MacSublayerSupport, Status>, ) -> Self
pub fn with_mock_security_support( self, mock_value: Result<SecuritySupport, Status>, ) -> Self
pub fn with_mock_spectrum_management_support( self, mock_value: Result<SpectrumManagementSupport, Status>, ) -> Self
pub fn with_mock_start_result(self, mock_value: Result<Channel, Status>) -> Self
pub fn with_mock_sta_addr(self, mock_field: [u8; 6]) -> Self
pub fn with_mock_mac_role(self, mock_field: WlanMacRole) -> Self
pub fn with_mock_probe_response_offload( self, mock_field: ProbeResponseOffloadExtension, ) -> Self
pub fn with_mock_mac_implementation_type( self, mock_field: MacImplementationType, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FakeDeviceConfig
impl RefUnwindSafe for FakeDeviceConfig
impl Send for FakeDeviceConfig
impl Sync for FakeDeviceConfig
impl Unpin for FakeDeviceConfig
impl UnwindSafe for FakeDeviceConfig
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