kos_sys::addons::netcfgStruct netcfg_t
Source #[repr(C)]
pub struct netcfg_t {Show 18 fields
pub src: c_int,
pub method: c_int,
pub ip: u32,
pub gateway: u32,
pub netmask: u32,
pub broadcast: u32,
pub dns: [u32; 2],
pub hostname: [c_char; 64],
pub email: [c_char; 64],
pub smtp: [c_char; 64],
pub pop3: [c_char; 64],
pub pop3_login: [c_char; 64],
pub pop3_passwd: [c_char; 64],
pub proxy_host: [c_char; 64],
pub proxy_port: c_int,
pub ppp_login: [c_char; 64],
pub ppp_passwd: [c_char; 64],
pub driver: [c_char; 64],
}
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
[From]<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.