pub struct NotificationRegistry { /* private fields */ }Implementations§
Source§impl NotificationRegistry
impl NotificationRegistry
Sourcepub fn poll_needed(
&self,
store: &dyn NotificationPublicationStore,
local_owners: &[[u8; 16]],
control: &StorageReadControl,
) -> StorageBackendResult<bool>
pub fn poll_needed( &self, store: &dyn NotificationPublicationStore, local_owners: &[[u8; 16]], control: &StorageReadControl, ) -> StorageBackendResult<bool>
Observe committed work without taking the registry writer. A racing publication is picked up by the next poll; admission rechecks all state before applying changes.
Sourcepub fn begin_recovered(
&self,
store: &dyn NotificationPublicationStore,
control: &StorageReadControl,
) -> StorageBackendResult<NotificationRegistryTransaction>
pub fn begin_recovered( &self, store: &dyn NotificationPublicationStore, control: &StorageReadControl, ) -> StorageBackendResult<NotificationRegistryTransaction>
Recover any committed slot before admitting another publisher. Each recovery commits its queue acknowledgement before conditionally clearing the main-store slot. A concurrent cleanup or publisher cannot make a stale acknowledgement delete a newer intent.
Source§impl NotificationRegistry
impl NotificationRegistry
Sourcepub fn begin_publishing(
&self,
store: &dyn NotificationPublicationStore,
control: &StorageReadControl,
resume: Option<(&NotificationPublication, [u8; 16])>,
owner_alive: &mut dyn FnMut([u8; 16]) -> StorageBackendResult<bool>,
) -> StorageBackendResult<NotificationRegistryTransaction>
pub fn begin_publishing( &self, store: &dyn NotificationPublicationStore, control: &StorageReadControl, resume: Option<(&NotificationPublication, [u8; 16])>, owner_alive: &mut dyn FnMut([u8; 16]) -> StorageBackendResult<bool>, ) -> StorageBackendResult<NotificationRegistryTransaction>
Publishers wait for the original reserved range; consumers and recovery can continue using ordinary registry transactions. Owner liveness comes from a retained process lease.
Source§impl NotificationRegistry
impl NotificationRegistry
pub fn open( path: &Path, key: Option<&StorageEncryptionKey>, ) -> StorageBackendResult<Self>
pub fn begin(&self) -> StorageBackendResult<NotificationRegistryTransaction>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NotificationRegistry
impl !UnwindSafe for NotificationRegistry
impl Freeze for NotificationRegistry
impl Send for NotificationRegistry
impl Sync for NotificationRegistry
impl Unpin for NotificationRegistry
impl UnsafeUnpin for NotificationRegistry
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