pub struct GraphObserveAllReactive { /* private fields */ }Expand description
Reactive variant of GraphObserveAll that auto-subscribes
late-added named nodes via Graph namespace-change notifications.
Drop to unsubscribe everything.
Implementations§
Source§impl GraphObserveAllReactive
impl GraphObserveAllReactive
Sourcepub fn subscribe<F>(&mut self, sink: F) -> usize
pub fn subscribe<F>(&mut self, sink: F) -> usize
Subscribe a sink to all current AND future named nodes.
The sink receives (name, &[Message]) tuples, same as
GraphObserveAll::subscribe. Returns the number of nodes
subscribed at call time (future auto-subscriptions are not
counted).
§Panics
Panics if called more than once on the same handle. The v1
contract is “single-shot wiring”; rebuild the handle via
Graph::observe_all_reactive to install another sink.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphObserveAllReactive
impl !RefUnwindSafe for GraphObserveAllReactive
impl Send for GraphObserveAllReactive
impl Sync for GraphObserveAllReactive
impl Unpin for GraphObserveAllReactive
impl UnsafeUnpin for GraphObserveAllReactive
impl !UnwindSafe for GraphObserveAllReactive
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