pub enum RawOptionValue {
Count,
Duration,
}Expand description
How the core bounds one raw option’s value (ADR-0007 budgets).
Variants§
Count
A repetition count: -1 is infinite and anything over the cap is
budget-hostile. hurl has no cancellation, so an unbounded count leaves
the watchdog abandoning a thread it cannot stop.
Duration
A duration, capped so one entry cannot outlast a run.
Trait Implementations§
Source§impl Clone for RawOptionValue
impl Clone for RawOptionValue
Source§fn clone(&self) -> RawOptionValue
fn clone(&self) -> RawOptionValue
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 RawOptionValue
Source§impl Debug for RawOptionValue
impl Debug for RawOptionValue
impl Eq for RawOptionValue
Source§impl PartialEq for RawOptionValue
impl PartialEq for RawOptionValue
impl StructuralPartialEq for RawOptionValue
Auto Trait Implementations§
impl Freeze for RawOptionValue
impl RefUnwindSafe for RawOptionValue
impl Send for RawOptionValue
impl Sync for RawOptionValue
impl Unpin for RawOptionValue
impl UnsafeUnpin for RawOptionValue
impl UnwindSafe for RawOptionValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.