pub struct WorkerCapability {
pub cpu_cores: u32,
pub memory_gb: f32,
pub gpu_vram_gb: f32,
pub network_mbps: u32,
pub tags: Vec<String>,
}Expand description
Describes the capabilities of a worker node.
Fields§
§cpu_cores: u32Number of CPU cores available.
memory_gb: f32RAM in gigabytes.
gpu_vram_gb: f32GPU VRAM in gigabytes (0.0 if no GPU).
network_mbps: u32Network bandwidth in Mbps.
Arbitrary string tags (e.g., “av1”, “gpu”, “high-mem”).
Implementations§
Trait Implementations§
Source§impl Clone for WorkerCapability
impl Clone for WorkerCapability
Source§fn clone(&self) -> WorkerCapability
fn clone(&self) -> WorkerCapability
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 WorkerCapability
impl RefUnwindSafe for WorkerCapability
impl Send for WorkerCapability
impl Sync for WorkerCapability
impl Unpin for WorkerCapability
impl UnsafeUnpin for WorkerCapability
impl UnwindSafe for WorkerCapability
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