kos_sys::addons::ppp

Struct ppp_device_t

Source
#[repr(C)]
pub struct ppp_device_t { pub name: *const c_char, pub descr: *const c_char, pub index: c_int, pub flags: u32, pub privdata: *mut c_void, pub detect: Option<unsafe extern "C" fn(dev: *mut ppp_device_t) -> c_int>, pub init: Option<unsafe extern "C" fn(dev: *mut ppp_device_t) -> c_int>, pub shutdown: Option<unsafe extern "C" fn(dev: *mut ppp_device_t) -> c_int>, pub tx: Option<unsafe extern "C" fn(dev: *mut ppp_device_t, data: *const u8, len: c_size_t, flags: u32) -> c_int>, pub rx: Option<unsafe extern "C" fn(dev: *mut ppp_device_t, out_len: *mut c_ssize_t) -> *const u8>, }

Fields§

§name: *const c_char§descr: *const c_char§index: c_int§flags: u32§privdata: *mut c_void§detect: Option<unsafe extern "C" fn(dev: *mut ppp_device_t) -> c_int>§init: Option<unsafe extern "C" fn(dev: *mut ppp_device_t) -> c_int>§shutdown: Option<unsafe extern "C" fn(dev: *mut ppp_device_t) -> c_int>§tx: Option<unsafe extern "C" fn(dev: *mut ppp_device_t, data: *const u8, len: c_size_t, flags: u32) -> c_int>§rx: Option<unsafe extern "C" fn(dev: *mut ppp_device_t, out_len: *mut c_ssize_t) -> *const u8>

Auto Trait Implementations§

§

impl Freeze for ppp_device_t

§

impl RefUnwindSafe for ppp_device_t

§

impl !Send for ppp_device_t

§

impl !Sync for ppp_device_t

§

impl Unpin for ppp_device_t

§

impl UnwindSafe for ppp_device_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.