pub struct StartLimit(/* private fields */);Expand description
The maximum number of step executions one logical step may start.
The default is u32::MAX: an effectively unrestricted step that remains a
finite typed value rather than an absent bound.
Implementations§
Source§impl StartLimit
impl StartLimit
Sourcepub const UNRESTRICTED: Self
pub const UNRESTRICTED: Self
The unrestricted default.
Sourcepub fn new(value: u32) -> Result<Self, DefinitionError>
pub fn new(value: u32) -> Result<Self, DefinitionError>
Constructs a nonzero start limit.
§Errors
Returns DefinitionError::ZeroStartLimit for zero, because a step
that can never start is a definition mistake rather than a policy.
Trait Implementations§
Source§impl Clone for StartLimit
impl Clone for StartLimit
Source§fn clone(&self) -> StartLimit
fn clone(&self) -> StartLimit
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 StartLimit
Source§impl Debug for StartLimit
impl Debug for StartLimit
Source§impl Default for StartLimit
impl Default for StartLimit
impl Eq for StartLimit
Source§impl Hash for StartLimit
impl Hash for StartLimit
Source§impl Ord for StartLimit
impl Ord for StartLimit
Source§fn cmp(&self, other: &StartLimit) -> Ordering
fn cmp(&self, other: &StartLimit) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StartLimit
impl PartialEq for StartLimit
Source§impl PartialOrd for StartLimit
impl PartialOrd for StartLimit
impl StructuralPartialEq for StartLimit
Auto Trait Implementations§
impl Freeze for StartLimit
impl RefUnwindSafe for StartLimit
impl Send for StartLimit
impl Sync for StartLimit
impl Unpin for StartLimit
impl UnsafeUnpin for StartLimit
impl UnwindSafe for StartLimit
Blanket Implementations§
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