pub struct AdaptationLimits { /* private fields */ }Expand description
Limits applied across an adaptive decision ledger.
Implementations§
Source§impl AdaptationLimits
impl AdaptationLimits
Sourcepub fn new(
max_transitions: u32,
max_action_schedules: u16,
) -> Result<Self, AdaptivePipelineError>
pub fn new( max_transitions: u32, max_action_schedules: u16, ) -> Result<Self, AdaptivePipelineError>
Creates positive global transition and action scheduling limits.
Sourcepub fn max_transitions(self) -> u32
pub fn max_transitions(self) -> u32
Returns the maximum recorded directives.
Sourcepub fn max_action_schedules(self) -> u16
pub fn max_action_schedules(self) -> u16
Returns the maximum times one action may be scheduled.
Trait Implementations§
Source§impl Clone for AdaptationLimits
impl Clone for AdaptationLimits
Source§fn clone(&self) -> AdaptationLimits
fn clone(&self) -> AdaptationLimits
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 AdaptationLimits
Source§impl Debug for AdaptationLimits
impl Debug for AdaptationLimits
Source§impl Default for AdaptationLimits
impl Default for AdaptationLimits
Source§impl<'de> Deserialize<'de> for AdaptationLimits
impl<'de> Deserialize<'de> for AdaptationLimits
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 AdaptationLimits
Source§impl PartialEq for AdaptationLimits
impl PartialEq for AdaptationLimits
Source§impl Serialize for AdaptationLimits
impl Serialize for AdaptationLimits
impl StructuralPartialEq for AdaptationLimits
Auto Trait Implementations§
impl Freeze for AdaptationLimits
impl RefUnwindSafe for AdaptationLimits
impl Send for AdaptationLimits
impl Sync for AdaptationLimits
impl Unpin for AdaptationLimits
impl UnsafeUnpin for AdaptationLimits
impl UnwindSafe for AdaptationLimits
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