[][src]Struct wifi_nina::Wifi

pub struct Wifi<T> { /* fields omitted */ }

Implementations

impl<T> Wifi<T> where
    T: Transport
[src]

pub fn new(transport: T) -> Self[src]

pub fn get_firmware_version(
    &mut self
) -> Result<ArrayVec<[u8; 16]>, Error<T::Error>>
[src]

pub fn set_led(&mut self, r: u8, g: u8, b: u8) -> Result<(), Error<T::Error>>[src]

pub fn configure(
    &mut self,
    config: Config<'_>,
    connect_timeout: Option<Duration>
) -> Result<(), Error<T::Error>>
[src]

pub fn await_connection_state(
    &mut self,
    connection_state: ConnectionState,
    timeout: Duration
) -> Result<(), Error<T::Error>>
[src]

pub fn scan_networks<'a>(
    &'a mut self
) -> Result<impl Iterator<Item = Result<ScannedNetwork, Error<T::Error>>> + 'a, Error<T::Error>>
[src]

pub fn ssid(&mut self) -> Result<ArrayVec<[u8; 32]>, Error<T::Error>>[src]

pub fn bssid(&mut self) -> Result<ArrayVec<[u8; 6]>, Error<T::Error>>[src]

pub fn rssi(&mut self) -> Result<i32, Error<T::Error>>[src]

pub fn encryption_type(&mut self) -> Result<EncryptionType, Error<T::Error>>[src]

pub fn resolve(&mut self, hostname: &str) -> Result<Ipv4Addr, Error<T::Error>>[src]

pub fn new_client(&mut self) -> Result<Client<T>, Error<T::Error>>[src]

Trait Implementations

impl<T: Debug> Debug for Wifi<T>[src]

Auto Trait Implementations

impl<T> Send for Wifi<T> where
    T: Send

impl<T> Sync for Wifi<T> where
    T: Sync

impl<T> Unpin for Wifi<T> where
    T: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.