pub enum NetifStack {
Sta,
Ap,
Eth,
Ppp,
Thread,
}
Variants§
Sta
Station mode (WiFi client)
Ap
Access point mode (WiFi router)
Eth
Ethernet
Ppp
Point-to-Point Protocol (PPP)
Thread
Implementations§
Source§impl NetifStack
impl NetifStack
Sourcepub fn initialize() -> Result<(), EspError>
pub fn initialize() -> Result<(), EspError>
Initialize the ESP Netif stack
This function is called automatically when a new EspNetif
instance is created,
but it can also be called manually by the user - for example, in cases when some
networking code needs to be started before there is even one active EspNetif
interface.
The function needs to be called only once for the duration of the program - ideally early on during the app booststraping process. Once initialized, the netif stack cannot be de-initialized.
pub fn default_configuration(&self) -> NetifConfiguration
Trait Implementations§
Source§impl Clone for NetifStack
impl Clone for NetifStack
Source§fn clone(&self) -> NetifStack
fn clone(&self) -> NetifStack
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NetifStack
impl Debug for NetifStack
Source§impl Hash for NetifStack
impl Hash for NetifStack
Source§impl PartialEq for NetifStack
impl PartialEq for NetifStack
impl Copy for NetifStack
impl Eq for NetifStack
impl StructuralPartialEq for NetifStack
Auto Trait Implementations§
impl Freeze for NetifStack
impl RefUnwindSafe for NetifStack
impl Send for NetifStack
impl Sync for NetifStack
impl Unpin for NetifStack
impl UnwindSafe for NetifStack
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)