pub struct HttpHeaderControlPairStrategy { /* private fields */ }Expand description
First built-in PayloadStrategy: a single-header control/candidate pair.
Implementations§
Source§impl HttpHeaderControlPairStrategy
impl HttpHeaderControlPairStrategy
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates the strategy bound to its stable reference and revision.
The reference identity is a compile-time constant, so construction only
fails if the shared PayloadStrategyRef validation contract changes;
that is treated as an unrecoverable programmer error.
Trait Implementations§
Source§impl Clone for HttpHeaderControlPairStrategy
impl Clone for HttpHeaderControlPairStrategy
Source§fn clone(&self) -> HttpHeaderControlPairStrategy
fn clone(&self) -> HttpHeaderControlPairStrategy
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 PayloadStrategy for HttpHeaderControlPairStrategy
impl PayloadStrategy for HttpHeaderControlPairStrategy
Source§fn strategy_ref(&self) -> &PayloadStrategyRef
fn strategy_ref(&self) -> &PayloadStrategyRef
Returns the stable strategy identity and implementation revision.
Source§fn derive_one(
&self,
role: PayloadVariantRole,
seed: &PayloadSeed,
limits: PayloadStrategyLimits,
) -> Result<PayloadArtifact, PayloadStrategyError>
fn derive_one( &self, role: PayloadVariantRole, seed: &PayloadSeed, limits: PayloadStrategyLimits, ) -> Result<PayloadArtifact, PayloadStrategyError>
Derives exactly one bounded artifact for this execution turn.
Auto Trait Implementations§
impl Freeze for HttpHeaderControlPairStrategy
impl RefUnwindSafe for HttpHeaderControlPairStrategy
impl Send for HttpHeaderControlPairStrategy
impl Sync for HttpHeaderControlPairStrategy
impl Unpin for HttpHeaderControlPairStrategy
impl UnsafeUnpin for HttpHeaderControlPairStrategy
impl UnwindSafe for HttpHeaderControlPairStrategy
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