pub struct PayloadStrategyLimits { /* private fields */ }Expand description
Per-turn byte envelope applied before and after strategy derivation.
Implementations§
Source§impl PayloadStrategyLimits
impl PayloadStrategyLimits
Sourcepub fn new(
max_seed_bytes: u32,
max_artifact_bytes: u32,
) -> Result<Self, PayloadStrategyError>
pub fn new( max_seed_bytes: u32, max_artifact_bytes: u32, ) -> Result<Self, PayloadStrategyError>
Creates a bounded per-turn envelope. Zero is a valid fail-closed value.
Sourcepub const fn max_seed_bytes(self) -> u32
pub const fn max_seed_bytes(self) -> u32
Returns the largest accepted seed.
Sourcepub const fn max_artifact_bytes(self) -> u32
pub const fn max_artifact_bytes(self) -> u32
Returns the largest accepted derived artifact.
Trait Implementations§
Source§impl Clone for PayloadStrategyLimits
impl Clone for PayloadStrategyLimits
Source§fn clone(&self) -> PayloadStrategyLimits
fn clone(&self) -> PayloadStrategyLimits
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 moreimpl Copy for PayloadStrategyLimits
Source§impl Debug for PayloadStrategyLimits
impl Debug for PayloadStrategyLimits
Source§impl Default for PayloadStrategyLimits
impl Default for PayloadStrategyLimits
Source§impl<'de> Deserialize<'de> for PayloadStrategyLimits
impl<'de> Deserialize<'de> for PayloadStrategyLimits
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
impl Eq for PayloadStrategyLimits
Source§impl PartialEq for PayloadStrategyLimits
impl PartialEq for PayloadStrategyLimits
Source§impl Serialize for PayloadStrategyLimits
impl Serialize for PayloadStrategyLimits
impl StructuralPartialEq for PayloadStrategyLimits
Auto Trait Implementations§
impl Freeze for PayloadStrategyLimits
impl RefUnwindSafe for PayloadStrategyLimits
impl Send for PayloadStrategyLimits
impl Sync for PayloadStrategyLimits
impl Unpin for PayloadStrategyLimits
impl UnsafeUnpin for PayloadStrategyLimits
impl UnwindSafe for PayloadStrategyLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more