Struct aldrin::DiscovererEvent
source · pub struct DiscovererEvent<'a, Key> { /* private fields */ }
Expand description
Event emitted by Discoverer
s.
Implementations§
source§impl<'a, Key> DiscovererEvent<'a, Key>
impl<'a, Key> DiscovererEvent<'a, Key>
sourcepub fn kind(&self) -> DiscovererEventKind
pub fn kind(&self) -> DiscovererEventKind
Specifies whether the object was created or destroyed.
sourcepub fn service_id(&self, uuid: ServiceUuid) -> ServiceId
pub fn service_id(&self, uuid: 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 uuid
is not one of the UUIDs specified when
object
was called.
Trait Implementations§
Auto Trait Implementations§
impl<'a, Key> Freeze for DiscovererEvent<'a, Key>
impl<'a, Key> !RefUnwindSafe for DiscovererEvent<'a, Key>
impl<'a, Key> Send for DiscovererEvent<'a, Key>where
Key: Sync,
impl<'a, Key> Sync for DiscovererEvent<'a, Key>where
Key: Sync,
impl<'a, Key> Unpin for DiscovererEvent<'a, Key>
impl<'a, Key> !UnwindSafe for DiscovererEvent<'a, Key>
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