kos_sys::addons::pppStruct ppp_protocol_t
Source #[repr(C)]
pub struct ppp_protocol_t {
pub next: *mut ppp_protocol_t,
pub prev: *mut *mut ppp_protocol_t,
pub name: *const c_char,
pub code: u16,
pub privdata: *mut c_void,
pub init: Option<unsafe extern "C" fn(proto: *mut ppp_protocol_t) -> c_int>,
pub shutdown: Option<unsafe extern "C" fn(proto: *mut ppp_protocol_t) -> c_int>,
pub input: Option<unsafe extern "C" fn(proto: *mut ppp_protocol_t, buf: *const u8, len: c_size_t) -> c_int>,
pub enter_phase: Option<unsafe extern "C" fn(proto: *mut ppp_protocol_t, oldp: c_int, newp: c_int)>,
pub check_timeouts: Option<unsafe extern "C" fn(proto: *mut ppp_protocol_t, tm: u64)>,
}
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.