pub trait ResourcePublisher {
type Error;
// Required method
fn compare_and_apply(
&self,
effect: &ProjectionEffect,
) -> Result<(), Self::Error>;
}Required Associated Types§
Required Methods§
Sourcefn compare_and_apply(
&self,
effect: &ProjectionEffect,
) -> Result<(), Self::Error>
fn compare_and_apply( &self, effect: &ProjectionEffect, ) -> Result<(), Self::Error>
Atomically compare-and-apply desired projection state. Duplicate effects return the original outcome; older term/generation/version rejects.