#[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 Freeze for gnrc_netif_ops
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes