kos_sys::addons::pppStruct 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>,
}
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.