Struct riot_sys::inline::gnrc_netif_ops
source · #[repr(C)]pub struct gnrc_netif_ops {
pub init: Option<unsafe extern "C" fn(_: *mut gnrc_netif_t) -> c_int>,
pub send: Option<unsafe extern "C" fn(_: *mut gnrc_netif_t, _: *mut gnrc_pktsnip_t) -> c_int>,
pub recv: Option<unsafe extern "C" fn(_: *mut gnrc_netif_t) -> *mut gnrc_pktsnip_t>,
pub get: Option<unsafe extern "C" fn(_: *mut gnrc_netif_t, _: *mut gnrc_netapi_opt_t) -> c_int>,
pub set: Option<unsafe extern "C" fn(_: *mut gnrc_netif_t, _: *const gnrc_netapi_opt_t) -> c_int>,
pub msg_handler: Option<unsafe extern "C" fn(_: *mut gnrc_netif_t, _: *mut msg_t)>,
}
Fields§
§init: Option<unsafe extern "C" fn(_: *mut gnrc_netif_t) -> c_int>
§send: Option<unsafe extern "C" fn(_: *mut gnrc_netif_t, _: *mut gnrc_pktsnip_t) -> c_int>
§recv: Option<unsafe extern "C" fn(_: *mut gnrc_netif_t) -> *mut gnrc_pktsnip_t>
§get: Option<unsafe extern "C" fn(_: *mut gnrc_netif_t, _: *mut gnrc_netapi_opt_t) -> c_int>
§set: Option<unsafe extern "C" fn(_: *mut gnrc_netif_t, _: *const gnrc_netapi_opt_t) -> c_int>
§msg_handler: Option<unsafe extern "C" fn(_: *mut gnrc_netif_t, _: *mut msg_t)>
Trait Implementations§
source§impl Clone for gnrc_netif_ops
impl Clone for gnrc_netif_ops
source§fn clone(&self) -> gnrc_netif_ops
fn clone(&self) -> gnrc_netif_ops
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for gnrc_netif_ops
Auto Trait Implementations§
impl RefUnwindSafe for gnrc_netif_ops
impl Send for gnrc_netif_ops
impl Sync for gnrc_netif_ops
impl Unpin for gnrc_netif_ops
impl UnwindSafe for gnrc_netif_ops
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more