pub struct NanSvcMatch<'a>(/* private fields */);Available on crate feature
wifi only.Expand description
See WifiEvent.
Implementations§
Source§impl NanSvcMatch<'_>
impl NanSvcMatch<'_>
Sourcepub fn subscribe_id(&self) -> u8
pub fn subscribe_id(&self) -> u8
Get the Subscribe Service ID.
Sourcepub fn publish_id(&self) -> u8
pub fn publish_id(&self) -> u8
Get the Publish Service ID.
Sourcepub fn pub_if_mac(&self) -> &[u8]
pub fn pub_if_mac(&self) -> &[u8]
Get the NAN Interface MAC of the Publisher.
Sourcepub fn update_pub_id(&self) -> bool
pub fn update_pub_id(&self) -> bool
Indicates whether publisher’s service ID needs to be updated.
Trait Implementations§
Source§impl<'a> Clone for NanSvcMatch<'a>
impl<'a> Clone for NanSvcMatch<'a>
Source§fn clone(&self) -> NanSvcMatch<'a>
fn clone(&self) -> NanSvcMatch<'a>
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 moreimpl<'a> Copy for NanSvcMatch<'a>
Auto Trait Implementations§
impl<'a> Freeze for NanSvcMatch<'a>
impl<'a> RefUnwindSafe for NanSvcMatch<'a>
impl<'a> Send for NanSvcMatch<'a>
impl<'a> Sync for NanSvcMatch<'a>
impl<'a> Unpin for NanSvcMatch<'a>
impl<'a> UnwindSafe for NanSvcMatch<'a>
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)Source§impl<T> EventExt for Twhere
T: Event + 'static,
impl<T> EventExt for Twhere
T: Event + 'static,
Source§fn take_handler() -> Box<Handler<Self>>
fn take_handler() -> Box<Handler<Self>>
Available on crate feature
unstable only.Get the handler for this event, replacing it with the default handler.
Source§fn replace_handler<F: FnMut(&Self) + Sync + Send + 'static>(
f: F,
) -> Box<Handler<Self>>
fn replace_handler<F: FnMut(&Self) + Sync + Send + 'static>( f: F, ) -> Box<Handler<Self>>
Available on crate feature
unstable only.Set the handler for this event, returning the old handler.
Source§fn update_handler<F: FnMut(&Self) + Sync + Send + 'static>(f: F)
fn update_handler<F: FnMut(&Self) + Sync + Send + 'static>(f: F)
Available on crate feature
unstable only.Atomic combination of
Self::take_handler and
Self::replace_handler. Use this to add a new handler which runs
after the previously registered handlers.