pub struct GraphObserveOne { /* private fields */ }Expand description
Single-node observe handle. subscribe taps downstream messages
from the observed node (same payload shape as a direct
graphrefly_core::Core::subscribe, including the
[Start, Data?] handshake when a cache is present per R1.2.3
/ R1.3.5.a).
up methods send tier-2 / tier-4 messages upstream
(PAUSE / RESUME / INVALIDATE) — the up(messages) API per
canonical §3.6.2 specialized to the supported message kinds.
Tier-3 / tier-5 / tier-6 messages have no upstream-injection
semantics.
Implementations§
Source§impl GraphObserveOne
impl GraphObserveOne
Sourcepub fn subscribe(&self, sink: Sink) -> Subscription
pub fn subscribe(&self, sink: Sink) -> Subscription
Subscribe a sink. Drop the returned Subscription to detach.
Sourcepub fn pause(&self, lock: LockId) -> Result<(), PauseError>
pub fn pause(&self, lock: LockId) -> Result<(), PauseError>
Send [PAUSE, lock] upstream (per canonical §3.6.2 up(...)).
Sourcepub fn resume(&self, lock: LockId) -> Result<Option<ResumeReport>, PauseError>
pub fn resume(&self, lock: LockId) -> Result<Option<ResumeReport>, PauseError>
Send [RESUME, lock] upstream.
Sourcepub fn invalidate(&self)
pub fn invalidate(&self)
Send [INVALIDATE] upstream.
Auto Trait Implementations§
impl Freeze for GraphObserveOne
impl !RefUnwindSafe for GraphObserveOne
impl Send for GraphObserveOne
impl Sync for GraphObserveOne
impl Unpin for GraphObserveOne
impl UnsafeUnpin for GraphObserveOne
impl !UnwindSafe for GraphObserveOne
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