kos_sys::addons::netcfg

Struct 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],
}

Fields§

§src: c_int§method: c_int§ip: u32§gateway: u32§netmask: u32§broadcast: u32§dns: [u32; 2]§hostname: [c_char; 64]§email: [c_char; 64]§smtp: [c_char; 64]§pop3: [c_char; 64]§pop3_login: [c_char; 64]§pop3_passwd: [c_char; 64]§proxy_host: [c_char; 64]§proxy_port: c_int§ppp_login: [c_char; 64]§ppp_passwd: [c_char; 64]§driver: [c_char; 64]

Auto Trait Implementations§

§

impl Freeze for netcfg_t

§

impl RefUnwindSafe for netcfg_t

§

impl Send for netcfg_t

§

impl Sync for netcfg_t

§

impl Unpin for netcfg_t

§

impl UnwindSafe for netcfg_t

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.