pub struct Adapter<'a, Tx>{ /* private fields */ }Implementations§
Source§impl<'a, Tx> Adapter<'a, Tx>
impl<'a, Tx> Adapter<'a, Tx>
Sourcepub fn get_firmware_info(&mut self) -> Result<FirmwareInfo, ()>
pub fn get_firmware_info(&mut self) -> Result<FirmwareInfo, ()>
Retrieve the firmware version for the adapter.
Sourcepub fn get_ip_address(&mut self) -> Result<IpAddresses, ()>
pub fn get_ip_address(&mut self) -> Result<IpAddresses, ()>
Get the board’s IP address. Only valid if connected to an access-point.
Sourcepub fn set_mode(&mut self, mode: WiFiMode) -> Result<(), ()>
pub fn set_mode(&mut self, mode: WiFiMode) -> Result<(), ()>
Set the mode of the Wi-Fi stack
Must be done before joining an access point.
Sourcepub fn join<'c>(
&mut self,
ssid: &'c str,
password: &'c str,
) -> Result<(), WifiConnectionFailure>
pub fn join<'c>( &mut self, ssid: &'c str, password: &'c str, ) -> Result<(), WifiConnectionFailure>
Join a wifi access-point.
The board will expect to obtain an IP address from DHCP.
ssid: The access-point’s SSID to joinpassword: The password for the access-point.
pub fn query_dns_resolvers(&mut self) -> Result<ResolverAddresses, ()>
pub fn set_dns_resolvers( &mut self, resolver1: Ipv4Addr, resolver2: Option<Ipv4Addr>, ) -> Result<(), ()>
Sourcepub fn into_network_stack(self) -> Esp8266IpNetworkDriver<'a, Tx>
pub fn into_network_stack(self) -> Esp8266IpNetworkDriver<'a, Tx>
Consume the adapter and produce a NetworkStack.
Trait Implementations§
Auto Trait Implementations§
impl<'a, Tx> Freeze for Adapter<'a, Tx>where
Tx: Freeze,
impl<'a, Tx> !RefUnwindSafe for Adapter<'a, Tx>
impl<'a, Tx> Send for Adapter<'a, Tx>where
Tx: Send,
impl<'a, Tx> !Sync for Adapter<'a, Tx>
impl<'a, Tx> Unpin for Adapter<'a, Tx>where
Tx: Unpin,
impl<'a, Tx> !UnwindSafe for Adapter<'a, Tx>
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