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:
authis the set of all authentication methods to allow; if empty, no authentication will be usedusernameis the username to use for authentication; only relevant when theauthenumset is non-emptypasswordis the password to use for authentication; only relevant when theauthenumset is non-empty