Struct aldrin::DiscovererEvent
source · pub struct DiscovererEvent<Key> { /* private fields */ }
Expand description
Event emitted by Discoverer
s.
Implementations§
source§impl<Key> DiscovererEvent<Key>
impl<Key> DiscovererEvent<Key>
sourcepub fn kind(self) -> DiscovererEventKind
pub fn kind(self) -> DiscovererEventKind
Specifies whether the object was created or destroyed.
sourcepub fn service_id(
self,
discoverer: &Discoverer<Key>,
service: ServiceUuid,
) -> ServiceId
pub fn service_id( self, discoverer: &Discoverer<Key>, service: ServiceUuid, ) -> ServiceId
Returns a service id that is owned by this event’s object.
This function can only be called for those events that are emitted when an object is created
(kind
returns DiscovererEventKind::Created
). It will panic otherwise.
This function will also panic if service
is not one of the UUIDs specified when
object
was called.
Trait Implementations§
source§impl<Key: Clone> Clone for DiscovererEvent<Key>
impl<Key: Clone> Clone for DiscovererEvent<Key>
source§fn clone(&self) -> DiscovererEvent<Key>
fn clone(&self) -> DiscovererEvent<Key>
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 moresource§impl<Key: Debug> Debug for DiscovererEvent<Key>
impl<Key: Debug> Debug for DiscovererEvent<Key>
source§impl<Key> From<DiscovererIterEntry<'_, Key>> for DiscovererEvent<Key>
impl<Key> From<DiscovererIterEntry<'_, Key>> for DiscovererEvent<Key>
source§fn from(entry: DiscovererIterEntry<'_, Key>) -> Self
fn from(entry: DiscovererIterEntry<'_, Key>) -> Self
Converts to this type from the input type.
impl<Key: Copy> Copy for DiscovererEvent<Key>
Auto Trait Implementations§
impl<Key> Freeze for DiscovererEvent<Key>where
Key: Freeze,
impl<Key> RefUnwindSafe for DiscovererEvent<Key>where
Key: RefUnwindSafe,
impl<Key> Send for DiscovererEvent<Key>where
Key: Send,
impl<Key> Sync for DiscovererEvent<Key>where
Key: Sync,
impl<Key> Unpin for DiscovererEvent<Key>where
Key: Unpin,
impl<Key> UnwindSafe for DiscovererEvent<Key>where
Key: UnwindSafe,
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)