pub struct EventListenerId<E: IxaEvent> { /* private fields */ }Expand description
An opaque token for a registered event listener.
Pass this token to Context::unsubscribe_from_event to stop the listener
from receiving future emissions of the same event type.
Trait Implementations§
Source§impl<E: Clone + IxaEvent> Clone for EventListenerId<E>
impl<E: Clone + IxaEvent> Clone for EventListenerId<E>
Source§fn clone(&self) -> EventListenerId<E>
fn clone(&self) -> EventListenerId<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: PartialEq + IxaEvent> PartialEq for EventListenerId<E>
impl<E: PartialEq + IxaEvent> PartialEq for EventListenerId<E>
Source§fn eq(&self, other: &EventListenerId<E>) -> bool
fn eq(&self, other: &EventListenerId<E>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<E: Copy + IxaEvent> Copy for EventListenerId<E>
impl<E: Eq + IxaEvent> Eq for EventListenerId<E>
impl<E: IxaEvent> StructuralPartialEq for EventListenerId<E>
Auto Trait Implementations§
impl<E> Freeze for EventListenerId<E>
impl<E> RefUnwindSafe for EventListenerId<E>
impl<E> Send for EventListenerId<E>
impl<E> Sync for EventListenerId<E>
impl<E> Unpin for EventListenerId<E>
impl<E> UnsafeUnpin for EventListenerId<E>
impl<E> UnwindSafe for EventListenerId<E>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.