pub struct DiscoveryState { /* private fields */ }Expand description
Durable checkpoint; commit it atomically with the returned context batch.
Implementations§
Source§impl DiscoveryState
impl DiscoveryState
Sourcepub fn new(
addressing: &Addressing,
named_namespace: &NamespaceKey,
created: u64,
margin: u64,
) -> Result<Self, StoreError>
pub fn new( addressing: &Addressing, named_namespace: &NamespaceKey, created: u64, margin: u64, ) -> Result<Self, StoreError>
Bind namespace configuration, the named source and the safety cut.
Sourcepub fn exhaustive(&self) -> bool
pub fn exhaustive(&self) -> bool
Whether the accepted namespace universe is exhaustive.
Sourcepub fn next_candidate(
&mut self,
namespace: &NamespaceKey,
) -> Result<(), StoreError>
pub fn next_candidate( &mut self, namespace: &NamespaceKey, ) -> Result<(), StoreError>
Resume one streamed known-holder namespace under the original cut and binding. The caller owns its durable namespace-page cursor; repeats are idempotent.
Trait Implementations§
Source§impl Clone for DiscoveryState
impl Clone for DiscoveryState
Source§impl Debug for DiscoveryState
impl Debug for DiscoveryState
Source§impl Default for DiscoveryState
impl Default for DiscoveryState
Source§impl<'de> Deserialize<'de> for DiscoveryState
impl<'de> Deserialize<'de> for DiscoveryState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DiscoveryState
impl RefUnwindSafe for DiscoveryState
impl Send for DiscoveryState
impl Sync for DiscoveryState
impl Unpin for DiscoveryState
impl UnsafeUnpin for DiscoveryState
impl UnwindSafe for DiscoveryState
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