pub struct NotifierHandle { /* private fields */ }Expand description
Read-only application handle for the notifier attached to a dispatcher.
The returned store is the exact allocation the socket driver mutates. Exposing it makes state observable for policy, diagnostics and deterministic tests without asking the application to route SUBSCRIBE itself.
Implementations§
Source§impl NotifierHandle
impl NotifierHandle
Sourcepub fn subscriptions(&self) -> Arc<Mutex<Subscriptions>>
pub fn subscriptions(&self) -> Arc<Mutex<Subscriptions>>
The one subscription store used by both the library and socket paths.
Sourcepub fn counts(&self) -> NotifierCounts
pub fn counts(&self) -> NotifierCounts
A point-in-time runtime measurement.
Trait Implementations§
Source§impl Clone for NotifierHandle
impl Clone for NotifierHandle
Source§fn clone(&self) -> NotifierHandle
fn clone(&self) -> NotifierHandle
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 moreAuto Trait Implementations§
impl Freeze for NotifierHandle
impl RefUnwindSafe for NotifierHandle
impl Send for NotifierHandle
impl Sync for NotifierHandle
impl Unpin for NotifierHandle
impl UnsafeUnpin for NotifierHandle
impl UnwindSafe for NotifierHandle
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more