pub struct ListenerId(/* private fields */);
Expand description
Uniquely and safely identifies a registered listener within the engine.
This key is returned when a new listener (e.g., for an interval or a gong) is added to the engine. It is guaranteed to be unique and will not be reused, preventing stale ID bugs.
Trait Implementations§
Source§impl Clone for ListenerId
impl Clone for ListenerId
Source§fn clone(&self) -> ListenerId
fn clone(&self) -> ListenerId
Returns a duplicate 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 Debug for ListenerId
impl Debug for ListenerId
Source§impl Default for ListenerId
impl Default for ListenerId
Source§fn default() -> ListenerId
fn default() -> ListenerId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListenerId
impl<'de> Deserialize<'de> for ListenerId
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<KeyData> for ListenerId
impl From<KeyData> for ListenerId
Source§impl Hash for ListenerId
impl Hash for ListenerId
Source§impl Key for ListenerId
impl Key for ListenerId
Source§fn null() -> Self
fn null() -> Self
Creates a new key that is always invalid and distinct from any non-null
key. A null key can only be created through this method (or default
initialization of keys made with
new_key_type!
, which calls this
method). Read moreSource§impl Ord for ListenerId
impl Ord for ListenerId
Source§fn cmp(&self, other: &ListenerId) -> Ordering
fn cmp(&self, other: &ListenerId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ListenerId
impl PartialEq for ListenerId
Source§impl PartialOrd for ListenerId
impl PartialOrd for ListenerId
Source§impl Serialize for ListenerId
impl Serialize for ListenerId
impl Copy for ListenerId
impl Eq for ListenerId
impl StructuralPartialEq for ListenerId
Auto Trait Implementations§
impl Freeze for ListenerId
impl RefUnwindSafe for ListenerId
impl Send for ListenerId
impl Sync for ListenerId
impl Unpin for ListenerId
impl UnwindSafe for ListenerId
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