Trait embedded_svc::wifi::Wifi

source ·
pub trait Wifi {
    type Error: Debug;

    // Required methods
    fn get_capabilities(&self) -> Result<EnumSet<Capability>, Self::Error>;
    fn get_configuration(&self) -> Result<Configuration, Self::Error>;
    fn set_configuration(
        &mut self,
        conf: &Configuration,
    ) -> Result<(), Self::Error>;
    fn start(&mut self) -> Result<(), Self::Error>;
    fn stop(&mut self) -> Result<(), Self::Error>;
    fn connect(&mut self) -> Result<(), Self::Error>;
    fn disconnect(&mut self) -> Result<(), Self::Error>;
    fn is_started(&self) -> Result<bool, Self::Error>;
    fn is_connected(&self) -> Result<bool, Self::Error>;
    fn scan_n<const N: usize>(
        &mut self,
    ) -> Result<(Vec<AccessPointInfo, N>, usize), Self::Error>;
    fn scan(&mut self) -> Result<Vec<AccessPointInfo>, Self::Error>;
}

Required Associated Types§

source

type Error: Debug

Required Methods§

source

fn get_capabilities(&self) -> Result<EnumSet<Capability>, Self::Error>

source

fn get_configuration(&self) -> Result<Configuration, Self::Error>

source

fn set_configuration(&mut self, conf: &Configuration) -> Result<(), Self::Error>

source

fn start(&mut self) -> Result<(), Self::Error>

source

fn stop(&mut self) -> Result<(), Self::Error>

source

fn connect(&mut self) -> Result<(), Self::Error>

source

fn disconnect(&mut self) -> Result<(), Self::Error>

source

fn is_started(&self) -> Result<bool, Self::Error>

source

fn is_connected(&self) -> Result<bool, Self::Error>

source

fn scan_n<const N: usize>( &mut self, ) -> Result<(Vec<AccessPointInfo, N>, usize), Self::Error>

source

fn scan(&mut self) -> Result<Vec<AccessPointInfo>, Self::Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<W> Wifi for &mut W
where W: Wifi,

§

type Error = <W as Wifi>::Error

source§

fn get_capabilities(&self) -> Result<EnumSet<Capability>, Self::Error>

source§

fn get_configuration(&self) -> Result<Configuration, Self::Error>

source§

fn set_configuration(&mut self, conf: &Configuration) -> Result<(), Self::Error>

source§

fn start(&mut self) -> Result<(), Self::Error>

source§

fn stop(&mut self) -> Result<(), Self::Error>

source§

fn connect(&mut self) -> Result<(), Self::Error>

source§

fn disconnect(&mut self) -> Result<(), Self::Error>

source§

fn is_started(&self) -> Result<bool, Self::Error>

source§

fn is_connected(&self) -> Result<bool, Self::Error>

source§

fn scan_n<const N: usize>( &mut self, ) -> Result<(Vec<AccessPointInfo, N>, usize), Self::Error>

source§

fn scan(&mut self) -> Result<Vec<AccessPointInfo>, Self::Error>

Implementors§