Trait embedded_svc::wifi::asynch::Wifi
source · pub trait Wifi {
type Error: Debug;
// Required methods
async fn get_capabilities(&self) -> Result<EnumSet<Capability>, Self::Error>;
async fn get_configuration(&self) -> Result<Configuration, Self::Error>;
async fn set_configuration(
&mut self,
conf: &Configuration,
) -> Result<(), Self::Error>;
async fn start(&mut self) -> Result<(), Self::Error>;
async fn stop(&mut self) -> Result<(), Self::Error>;
async fn connect(&mut self) -> Result<(), Self::Error>;
async fn disconnect(&mut self) -> Result<(), Self::Error>;
async fn is_started(&self) -> Result<bool, Self::Error>;
async fn is_connected(&self) -> Result<bool, Self::Error>;
async fn scan_n<const N: usize>(
&mut self,
) -> Result<(Vec<AccessPointInfo, N>, usize), Self::Error>;
async fn scan(&mut self) -> Result<Vec<AccessPointInfo>, Self::Error>;
}
Required Associated Types§
Required Methods§
async fn get_capabilities(&self) -> Result<EnumSet<Capability>, Self::Error>
async fn get_configuration(&self) -> Result<Configuration, Self::Error>
async fn set_configuration( &mut self, conf: &Configuration, ) -> Result<(), Self::Error>
async fn start(&mut self) -> Result<(), Self::Error>
async fn stop(&mut self) -> Result<(), Self::Error>
async fn connect(&mut self) -> Result<(), Self::Error>
async fn disconnect(&mut self) -> Result<(), Self::Error>
async fn is_started(&self) -> Result<bool, Self::Error>
async fn is_connected(&self) -> Result<bool, Self::Error>
async fn scan_n<const N: usize>( &mut self, ) -> Result<(Vec<AccessPointInfo, N>, usize), Self::Error>
async fn scan(&mut self) -> Result<Vec<AccessPointInfo>, Self::Error>
Object Safety§
This trait is not object safe.