pub struct Capacity {
pub limit: u32,
pub stopped: Box<dyn FnOnce() -> bool + Send>,
}Expand description
The machine-wide limit (limits.json) of the backend an execution would start on.
Fields§
§limit: u32§stopped: Box<dyn FnOnce() -> bool + Send>Whether the Run stopped admitting the backend. It is asked while the claim holds the write lock, so the stop of a review that records it before it completes is always seen once that review’s slot is free.
Auto Trait Implementations§
impl !RefUnwindSafe for Capacity
impl !Sync for Capacity
impl !UnwindSafe for Capacity
impl Freeze for Capacity
impl Send for Capacity
impl Unpin for Capacity
impl UnsafeUnpin for Capacity
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