pub struct EspNetif { /* private fields */ }
Implementations§
Source§impl EspNetif
PPP-specific configuration of a Netif
impl EspNetif
PPP-specific configuration of a Netif
Sourcepub fn get_ppp_conf(&self) -> Result<PppConfiguration, EspError>
pub fn get_ppp_conf(&self) -> Result<PppConfiguration, EspError>
Get the current PPP configuration
Sourcepub fn set_ppp_conf(&mut self, conf: &PppConfiguration) -> Result<(), EspError>
pub fn set_ppp_conf(&mut self, conf: &PppConfiguration) -> Result<(), EspError>
Set the PPP configuration
Sourcepub fn set_ppp_auth(
&mut self,
auth: EnumSet<PppAuthentication>,
username: &CStr,
password: &CStr,
) -> Result<(), EspError>
pub fn set_ppp_auth( &mut self, auth: EnumSet<PppAuthentication>, username: &CStr, password: &CStr, ) -> Result<(), EspError>
Set the PPP authentication Arguments:
auth
is the set of all authentication methods to allow; if empty, no authentication will be usedusername
is the username to use for authentication; only relevant when theauth
enumset is non-emptypassword
is the password to use for authentication; only relevant when theauth
enumset is non-empty