pub struct DefinedSearchProjectionConsumer { /* private fields */ }Expand description
One versioned projection definition and the embedded owner that acquired it. Mapping callbacks and source domains are selected once at acquisition.
Implementations§
Source§impl DefinedSearchProjectionConsumer
impl DefinedSearchProjectionConsumer
pub fn definition(&self) -> &SearchProjectionDefinition
Sourcepub fn consumer(&self) -> &SearchProjectionConsumer
pub fn consumer(&self) -> &SearchProjectionConsumer
Raw consumer access for trusted hosts. Raw catch-up APIs accept their own mapper and scope; callers must preserve the definition’s agreement.
pub fn read_permit(&self, request: RuntimeWorkRequest) -> Result<RuntimePermit>
pub fn readiness( &self, max_operations: Option<usize>, ) -> SearchProjectionConsumerResult<SearchProjectionConsumerReadiness>
pub fn begin_catch_up( &self, config: ProjectionConsumerCatchUpConfig, ) -> Result<DefinedProjectionStagingSession<'_>, ProjectionConsumerCatchUpError>
Sourcepub fn prepare_covered_update(
&mut self,
covered: ProjectionCoveredConsumerUpdate,
durability: ProjectionSourceDurability,
) -> Result<PreparedSearchProjectionConsumerUpdate<'_>, ProjectionConsumerCatchUpError>
pub fn prepare_covered_update( &mut self, covered: ProjectionCoveredConsumerUpdate, durability: ProjectionSourceDurability, ) -> Result<PreparedSearchProjectionConsumerUpdate<'_>, ProjectionConsumerCatchUpError>
Prepare a covered update under the original native owner. The token authenticates the consumer and operation; the trusted host must ensure updates created through raw APIs use this definition’s mapper and scope.
pub fn resolve_publication(&mut self) -> SearchProjectionConsumerResult<()>
pub fn renew( &mut self, ) -> SearchProjectionConsumerResult<SearchProjectionConsumerStatus>
pub fn cleanup( &mut self, options: &ConsumerCleanupOptions, ) -> SearchProjectionConsumerResult<ConsumerCleanupReport>
Auto Trait Implementations§
impl !Freeze for DefinedSearchProjectionConsumer
impl !RefUnwindSafe for DefinedSearchProjectionConsumer
impl !UnwindSafe for DefinedSearchProjectionConsumer
impl Forget for DefinedSearchProjectionConsumer
impl Move for DefinedSearchProjectionConsumer
impl Send for DefinedSearchProjectionConsumer
impl Sync for DefinedSearchProjectionConsumer
impl Unpin for DefinedSearchProjectionConsumer
impl UnsafeUnpin for DefinedSearchProjectionConsumer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more