pub struct WorkerCapabilities {
pub cpu: bool,
pub gpu: bool,
pub storage: bool,
pub task_types: Vec<String>,
pub data_formats: Vec<String>,
}Expand description
Worker capabilities.
Fields§
§cpu: boolHas CPU processing
gpu: boolHas GPU processing
storage: boolHas large storage
task_types: Vec<String>Supported task types
data_formats: Vec<String>Supported data formats
Trait Implementations§
Source§impl Clone for WorkerCapabilities
impl Clone for WorkerCapabilities
Source§fn clone(&self) -> WorkerCapabilities
fn clone(&self) -> WorkerCapabilities
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkerCapabilities
impl Debug for WorkerCapabilities
Source§impl Default for WorkerCapabilities
impl Default for WorkerCapabilities
Source§impl<'de> Deserialize<'de> for WorkerCapabilities
impl<'de> Deserialize<'de> for WorkerCapabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WorkerCapabilities
impl RefUnwindSafe for WorkerCapabilities
impl Send for WorkerCapabilities
impl Sync for WorkerCapabilities
impl Unpin for WorkerCapabilities
impl UnsafeUnpin for WorkerCapabilities
impl UnwindSafe for WorkerCapabilities
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