pub struct PayloadStrategyRegistry { /* private fields */ }Expand description
Native strategy implementations keyed by planner-selected references.
Implementations§
Source§impl PayloadStrategyRegistry
impl PayloadStrategyRegistry
Sourcepub fn register(
&mut self,
strategy: Arc<dyn PayloadStrategy>,
) -> Result<(), PayloadStrategyError>
pub fn register( &mut self, strategy: Arc<dyn PayloadStrategy>, ) -> Result<(), PayloadStrategyError>
Registers one exact strategy revision.
Sourcepub fn contains(&self, reference: &PayloadStrategyRef) -> bool
pub fn contains(&self, reference: &PayloadStrategyRef) -> bool
Returns whether an exact strategy revision is registered.
Sourcepub fn derive_one(
&self,
reference: &PayloadStrategyRef,
role: PayloadVariantRole,
seed: &PayloadSeed,
limits: PayloadStrategyLimits,
) -> Result<PayloadArtifact, PayloadStrategyError>
pub fn derive_one( &self, reference: &PayloadStrategyRef, role: PayloadVariantRole, seed: &PayloadSeed, limits: PayloadStrategyLimits, ) -> Result<PayloadArtifact, PayloadStrategyError>
Resolves and derives one artifact, then revalidates its provenance.
Trait Implementations§
Source§impl Clone for PayloadStrategyRegistry
impl Clone for PayloadStrategyRegistry
Source§fn clone(&self) -> PayloadStrategyRegistry
fn clone(&self) -> PayloadStrategyRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PayloadStrategyRegistry
impl Debug for PayloadStrategyRegistry
Source§impl Default for PayloadStrategyRegistry
impl Default for PayloadStrategyRegistry
Source§fn default() -> PayloadStrategyRegistry
fn default() -> PayloadStrategyRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for PayloadStrategyRegistry
impl !UnwindSafe for PayloadStrategyRegistry
impl Freeze for PayloadStrategyRegistry
impl Send for PayloadStrategyRegistry
impl Sync for PayloadStrategyRegistry
impl Unpin for PayloadStrategyRegistry
impl UnsafeUnpin for PayloadStrategyRegistry
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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