pub trait NonBlocking {
    // Required methods
    fn is_scan_done(&self) -> Result<bool, EspError>;
    fn start_scan(
        &mut self,
        scan_config: &ScanConfig,
        blocking: bool
    ) -> Result<(), EspError>;
    fn stop_scan(&mut self) -> Result<(), EspError>;
    fn get_scan_result_n<const N: usize>(
        &mut self
    ) -> Result<(Vec<AccessPointInfo, N>, usize), EspError>;
    fn get_scan_result(&mut self) -> Result<Vec<AccessPointInfo>, EspError>;
    fn start_wps(&mut self, config: &WpsConfig<'_>) -> Result<(), EspError>;
    fn stop_wps(&mut self) -> Result<WpsStatus, EspError>;
    fn is_wps_finished(&self) -> Result<bool, EspError>;
}

Required Methods§

source

fn is_scan_done(&self) -> Result<bool, EspError>

source

fn start_scan( &mut self, scan_config: &ScanConfig, blocking: bool ) -> Result<(), EspError>

source

fn stop_scan(&mut self) -> Result<(), EspError>

source

fn get_scan_result_n<const N: usize>( &mut self ) -> Result<(Vec<AccessPointInfo, N>, usize), EspError>

source

fn get_scan_result(&mut self) -> Result<Vec<AccessPointInfo>, EspError>

source

fn start_wps(&mut self, config: &WpsConfig<'_>) -> Result<(), EspError>

source

fn stop_wps(&mut self) -> Result<WpsStatus, EspError>

source

fn is_wps_finished(&self) -> Result<bool, EspError>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> NonBlocking for &mut T
where T: NonBlocking,

source§

fn is_scan_done(&self) -> Result<bool, EspError>

source§

fn start_scan( &mut self, scan_config: &ScanConfig, blocking: bool ) -> Result<(), EspError>

source§

fn stop_scan(&mut self) -> Result<(), EspError>

source§

fn get_scan_result_n<const N: usize>( &mut self ) -> Result<(Vec<AccessPointInfo, N>, usize), EspError>

source§

fn get_scan_result(&mut self) -> Result<Vec<AccessPointInfo>, EspError>

source§

fn start_wps(&mut self, config: &WpsConfig<'_>) -> Result<(), EspError>

source§

fn stop_wps(&mut self) -> Result<WpsStatus, EspError>

source§

fn is_wps_finished(&self) -> Result<bool, EspError>

Implementors§