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. A Run’s hint is returned: the caller reads that Run again, or the state.
Trait Implementations§
Source§impl Drop for Subscription
impl Drop for Subscription
Auto Trait Implementations§
impl Forget for Subscription
impl Freeze for Subscriptionwhere
*const ArcInner<Inbox> is !null: Freeze,
PhantomData<ArcInner<Inbox>>: Freeze,
*const ArcInner<TreeNode> is !null: Freeze,
PhantomData<ArcInner<TreeNode>>: Freeze,
*const Header is !null: Freeze,
PhantomData<Result<(), String>>: Freeze,
impl Move for Subscription
impl RefUnwindSafe for Subscriptionwhere
Atomic<usize>: RefUnwindSafe,
Mutex<Dirty>: RefUnwindSafe,
Notify: RefUnwindSafe,
CancellationToken: RefUnwindSafe,
JoinHandle<Result<(), String>>: RefUnwindSafe,
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnsafeUnpin for Subscriptionwhere
*const ArcInner<Inbox> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inbox>>: UnsafeUnpin,
*const ArcInner<TreeNode> is !null: UnsafeUnpin,
PhantomData<ArcInner<TreeNode>>: UnsafeUnpin,
*const Header is !null: UnsafeUnpin,
PhantomData<Result<(), String>>: UnsafeUnpin,
impl UnwindSafe for Subscriptionwhere
Arc<Inbox>: UnwindSafe,
CancellationToken: UnwindSafe,
JoinHandle<Result<(), String>>: UnwindSafe,
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