pub struct SupportedTask {
pub worker_selector: WorkerSelector,
pub default_data_format: TaskDataFormat,
pub default_timeout: TimeoutPolicy,
pub metadata: TaskMetadata,
}
Expand description
Task information supported by the worker.
Fields§
§worker_selector: WorkerSelector
The worker selector of the task that will be matched to this worker.
default_data_format: TaskDataFormat
The data format of the task input and output.
default_timeout: TimeoutPolicy
The default timeout policy.
metadata: TaskMetadata
Additional task metadata.
Trait Implementations§
Source§impl Clone for SupportedTask
impl Clone for SupportedTask
Source§fn clone(&self) -> SupportedTask
fn clone(&self) -> SupportedTask
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 SupportedTask
impl Debug for SupportedTask
Source§impl<'de> Deserialize<'de> for SupportedTask
impl<'de> Deserialize<'de> for SupportedTask
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 SupportedTask
impl RefUnwindSafe for SupportedTask
impl Send for SupportedTask
impl Sync for SupportedTask
impl Unpin for SupportedTask
impl UnwindSafe for SupportedTask
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