#[repr(C)]pub struct nan_callbacks {
pub service_match: Option<unsafe extern "C" fn(sub_id: u8, pub_id: u8, pub_mac: *mut u8, capab: u16, ssi_ver: u8, ssi: *mut u8, ssi_len: u16)>,
pub replied: Option<unsafe extern "C" fn(pub_id: u8, sub_id: u8, pub_mac: *mut u8, ssi: *mut u8, ssi_len: u16)>,
pub receive: Option<unsafe extern "C" fn(svc_id: u8, peer_svc_id: u8, peer_mac: *mut u8, ssi: *mut u8, ssi_len: u16)>,
pub ndp_indication: Option<unsafe extern "C" fn(pub_id: u8, ndp_id: u8, peer_nmi: *mut u8, peer_ndi: *mut u8, ssi: *mut u8, ssi_len: u16)>,
pub ndp_confirm: Option<unsafe extern "C" fn(status: u8, ndp_id: u8, peer_nmi: *mut u8, peer_ndi: *mut u8, own_ndi: *mut u8, ssi: *mut u8, ssi_len: u16)>,
pub ndp_terminated: Option<unsafe extern "C" fn(reason: u8, ndp_id: u8, init_ndi: *mut u8)>,
pub action_txdone: Option<unsafe extern "C" fn(context: u32, tx_status: bool)>,
}Fields§
§service_match: Option<unsafe extern "C" fn(sub_id: u8, pub_id: u8, pub_mac: *mut u8, capab: u16, ssi_ver: u8, ssi: *mut u8, ssi_len: u16)>§replied: Option<unsafe extern "C" fn(pub_id: u8, sub_id: u8, pub_mac: *mut u8, ssi: *mut u8, ssi_len: u16)>§receive: Option<unsafe extern "C" fn(svc_id: u8, peer_svc_id: u8, peer_mac: *mut u8, ssi: *mut u8, ssi_len: u16)>§ndp_indication: Option<unsafe extern "C" fn(pub_id: u8, ndp_id: u8, peer_nmi: *mut u8, peer_ndi: *mut u8, ssi: *mut u8, ssi_len: u16)>§ndp_confirm: Option<unsafe extern "C" fn(status: u8, ndp_id: u8, peer_nmi: *mut u8, peer_ndi: *mut u8, own_ndi: *mut u8, ssi: *mut u8, ssi_len: u16)>§ndp_terminated: Option<unsafe extern "C" fn(reason: u8, ndp_id: u8, init_ndi: *mut u8)>§action_txdone: Option<unsafe extern "C" fn(context: u32, tx_status: bool)>Trait Implementations§
Source§impl Clone for nan_callbacks
impl Clone for nan_callbacks
Source§fn clone(&self) -> nan_callbacks
fn clone(&self) -> nan_callbacks
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for nan_callbacks
impl Debug for nan_callbacks
Source§impl Default for nan_callbacks
impl Default for nan_callbacks
Source§fn default() -> nan_callbacks
fn default() -> nan_callbacks
Returns the “default value” for a type. Read more
impl Copy for nan_callbacks
Auto Trait Implementations§
impl Freeze for nan_callbacks
impl RefUnwindSafe for nan_callbacks
impl Send for nan_callbacks
impl Sync for nan_callbacks
impl Unpin for nan_callbacks
impl UnsafeUnpin for nan_callbacks
impl UnwindSafe for nan_callbacks
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)