pub struct Subscription { /* private fields */ }Expand description
Register before reading the baseline. Dirties arriving during that read stay queued.
Drop requests cancellation; await Self::close before removing the subscribed state.
Implementations§
Source§impl Subscription
impl Subscription
pub async fn new(state: &Path) -> Self
Sourcepub async fn close(self) -> Result<(), String>
pub async fn close(self) -> Result<(), String>
Stop this subscription and wait for its connection, hub and probe database to close. Other subscriptions remain independent. Dropping this future still requests cancellation.
Sourcepub async fn next_reconciled(&mut self) -> Change
pub async fn next_reconciled(&mut self) -> Change
Process-owner death has no database writer; reuse the subscription’s reconciliation cadence when an observer also owns liveness reconciliation.
pub async fn next(&mut self) -> Change
Sourcepub async fn next_state(&mut self) -> Change
pub async fn next_state(&mut self) -> Change
Schedulers and non-session UIs can ignore session-only hints without reloading state.
Trait Implementations§
Source§impl Drop for Subscription
impl Drop for Subscription
Auto Trait Implementations§
impl Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnsafeUnpin for Subscription
impl UnwindSafe for Subscription
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