pub struct TaskRequirements {
pub min_cpu_cores: u32,
pub min_memory_gb: f32,
pub requires_gpu: bool,
pub min_gpu_vram_gb: f32,
pub preferred_tags: Vec<String>,
}Expand description
Describes the resource requirements of a task.
Fields§
§min_cpu_cores: u32Minimum CPU cores needed.
min_memory_gb: f32Minimum RAM in gigabytes needed.
requires_gpu: boolWhether a GPU is required.
min_gpu_vram_gb: f32Minimum GPU VRAM in gigabytes needed (only relevant if requires_gpu).
Tags that are preferred (not mandatory) on the worker.
Implementations§
Trait Implementations§
Source§impl Clone for TaskRequirements
impl Clone for TaskRequirements
Source§fn clone(&self) -> TaskRequirements
fn clone(&self) -> TaskRequirements
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 moreAuto Trait Implementations§
impl Freeze for TaskRequirements
impl RefUnwindSafe for TaskRequirements
impl Send for TaskRequirements
impl Sync for TaskRequirements
impl Unpin for TaskRequirements
impl UnsafeUnpin for TaskRequirements
impl UnwindSafe for TaskRequirements
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request