pub enum TimeLimitScope {
Feed,
Turn,
}Expand description
Which of the two nested execution-time budgets a ResourceError::Time
refers to.
Both read the same clock and differ only in when they are reset, so a
turn’s time is charged to its feed as well: Feed >= Turn always holds.
Variants§
Feed
ResourceLimits::max_feed_duration — reset at each feed.
Turn
ResourceLimits::max_turn_duration — reset at each feed and each
resume.
Trait Implementations§
Source§impl Clone for TimeLimitScope
impl Clone for TimeLimitScope
impl Copy for TimeLimitScope
Source§impl Debug for TimeLimitScope
impl Debug for TimeLimitScope
impl Eq for TimeLimitScope
Source§impl PartialEq for TimeLimitScope
impl PartialEq for TimeLimitScope
impl StructuralPartialEq for TimeLimitScope
Auto Trait Implementations§
impl Freeze for TimeLimitScope
impl RefUnwindSafe for TimeLimitScope
impl Send for TimeLimitScope
impl Sync for TimeLimitScope
impl Unpin for TimeLimitScope
impl UnsafeUnpin for TimeLimitScope
impl UnwindSafe for TimeLimitScope
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