pub struct AnySubscriber(pub usize, pub Weak<dyn Subscriber + Send + Sync>);Expand description
A type-erased subscriber.
Tuple Fields§
§0: usize§1: Weak<dyn Subscriber + Send + Sync>Trait Implementations§
Source§impl Clone for AnySubscriber
impl Clone for AnySubscriber
Source§fn clone(&self) -> AnySubscriber
fn clone(&self) -> AnySubscriber
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 AnySubscriber
impl Debug for AnySubscriber
Source§impl Hash for AnySubscriber
impl Hash for AnySubscriber
Source§impl PartialEq for AnySubscriber
impl PartialEq for AnySubscriber
Source§impl ReactiveNode for AnySubscriber
impl ReactiveNode for AnySubscriber
Source§fn mark_dirty(&self)
fn mark_dirty(&self)
Notifies the source’s dependencies that it has changed.
Source§fn mark_subscribers_check(&self)
fn mark_subscribers_check(&self)
Marks that all subscribers need to be checked.
Source§fn update_if_necessary(&self) -> bool
fn update_if_necessary(&self) -> bool
Regenerates the value for this node, if needed, and returns whether
it has actually changed or not.
Source§fn mark_check(&self)
fn mark_check(&self)
Notifies the source’s dependencies that it may have changed.
Source§impl Subscriber for AnySubscriber
impl Subscriber for AnySubscriber
Source§fn add_source(&self, source: AnySource)
fn add_source(&self, source: AnySource)
Adds a subscriber to this subscriber’s list of dependencies.
Source§fn clear_sources(&self, subscriber: &AnySubscriber)
fn clear_sources(&self, subscriber: &AnySubscriber)
Clears the set of sources for this subscriber.
Source§impl ToAnySubscriber for AnySubscriber
impl ToAnySubscriber for AnySubscriber
Source§fn to_any_subscriber(&self) -> AnySubscriber
fn to_any_subscriber(&self) -> AnySubscriber
Converts this type to its type-erased equivalent.
Source§impl WithObserver for AnySubscriber
impl WithObserver for AnySubscriber
Source§fn with_observer<T>(&self, fun: impl FnOnce() -> T) -> T
fn with_observer<T>(&self, fun: impl FnOnce() -> T) -> T
Runs the given function with this subscriber as the thread-local
Observer.Source§fn with_observer_untracked<T>(&self, fun: impl FnOnce() -> T) -> T
fn with_observer_untracked<T>(&self, fun: impl FnOnce() -> T) -> T
Runs the given function with this subscriber as the thread-local
Observer,
but without tracking dependencies.impl Eq for AnySubscriber
Auto Trait Implementations§
impl Freeze for AnySubscriber
impl !RefUnwindSafe for AnySubscriber
impl Send for AnySubscriber
impl Sync for AnySubscriber
impl Unpin for AnySubscriber
impl !UnwindSafe for AnySubscriber
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.