pub struct ResourceLimits<T: Float + Debug + Send + Sync + 'static> {
pub max_memory_mb: T,
pub max_cpu_percent: T,
pub max_gpu_memory_mb: T,
pub max_evaluation_time_seconds: T,
}Expand description
Resource limits
Fields§
§max_memory_mb: TMaximum memory (MB)
max_cpu_percent: TMaximum CPU usage (%)
max_gpu_memory_mb: TMaximum GPU memory (MB)
max_evaluation_time_seconds: TMaximum evaluation time (seconds)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ResourceLimits<T>where
T: Freeze,
impl<T> RefUnwindSafe for ResourceLimits<T>where
T: RefUnwindSafe,
impl<T> Send for ResourceLimits<T>
impl<T> Sync for ResourceLimits<T>
impl<T> Unpin for ResourceLimits<T>where
T: Unpin,
impl<T> UnsafeUnpin for ResourceLimits<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ResourceLimits<T>where
T: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more