pub struct ObserverHandle(pub u64);Expand description
Stable observer registration handle returned by Kernel::register_observer.
Tuple Fields§
§0: u64Monotonic registry index assigned at registration. A u64 (not
u16) so the monotonic counter cannot realistically saturate and
alias a live handle (the registry has no unregister, so handles
only ever grow).
Trait Implementations§
Source§impl Clone for ObserverHandle
impl Clone for ObserverHandle
Source§fn clone(&self) -> ObserverHandle
fn clone(&self) -> ObserverHandle
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 Debug for ObserverHandle
impl Debug for ObserverHandle
Source§impl<'de> Deserialize<'de> for ObserverHandle
impl<'de> Deserialize<'de> for ObserverHandle
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 Hash for ObserverHandle
impl Hash for ObserverHandle
Source§impl Ord for ObserverHandle
impl Ord for ObserverHandle
Source§fn cmp(&self, other: &ObserverHandle) -> Ordering
fn cmp(&self, other: &ObserverHandle) -> Ordering
1.21.0 (const: unstable) · 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 ObserverHandle
impl PartialEq for ObserverHandle
Source§fn eq(&self, other: &ObserverHandle) -> bool
fn eq(&self, other: &ObserverHandle) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ObserverHandle
impl PartialOrd for ObserverHandle
Source§impl Serialize for ObserverHandle
impl Serialize for ObserverHandle
impl Copy for ObserverHandle
impl Eq for ObserverHandle
impl StructuralPartialEq for ObserverHandle
Auto Trait Implementations§
impl Freeze for ObserverHandle
impl RefUnwindSafe for ObserverHandle
impl Send for ObserverHandle
impl Sync for ObserverHandle
impl Unpin for ObserverHandle
impl UnsafeUnpin for ObserverHandle
impl UnwindSafe for ObserverHandle
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