pub struct RepackResourceLimits { /* private fields */ }Expand description
Scheduler-wide resource limits.
Implementations§
Source§impl RepackResourceLimits
impl RepackResourceLimits
Sourcepub fn new(max_concurrent_operations: NonZeroUsize) -> Self
pub fn new(max_concurrent_operations: NonZeroUsize) -> Self
Create limits with a bounded number of simultaneous operations.
Sourcepub fn with_io_rate(self, bytes_per_second: Option<NonZeroU64>) -> Self
pub fn with_io_rate(self, bytes_per_second: Option<NonZeroU64>) -> Self
Set the aggregate per-operation I/O rate; None disables throttling.
Sourcepub fn with_load_yield_interval(self, interval: Duration) -> Self
pub fn with_load_yield_interval(self, interval: Duration) -> Self
Set how often a load-blocked operation rechecks load and cancellation.
Trait Implementations§
Source§impl Clone for RepackResourceLimits
impl Clone for RepackResourceLimits
impl Copy for RepackResourceLimits
Source§impl Debug for RepackResourceLimits
impl Debug for RepackResourceLimits
Auto Trait Implementations§
impl Freeze for RepackResourceLimits
impl RefUnwindSafe for RepackResourceLimits
impl Send for RepackResourceLimits
impl Sync for RepackResourceLimits
impl Unpin for RepackResourceLimits
impl UnsafeUnpin for RepackResourceLimits
impl UnwindSafe for RepackResourceLimits
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