pub struct WorkerSelector {
pub kind: Cow<'static, str>,
}
Expand description
A selector that is used to connect tasks with workers. Currently a task can be executed by a worker only if the worker selector of the task and the worker are equal.
Fields§
§kind: Cow<'static, str>
A common shared name between the tasks and workers,
Trait Implementations§
Source§impl Clone for WorkerSelector
impl Clone for WorkerSelector
Source§fn clone(&self) -> WorkerSelector
fn clone(&self) -> WorkerSelector
Returns a copy 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 WorkerSelector
impl Debug for WorkerSelector
Source§impl<'de> Deserialize<'de> for WorkerSelector
impl<'de> Deserialize<'de> for WorkerSelector
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
Source§impl<T> From<T> for WorkerSelector
impl<T> From<T> for WorkerSelector
Source§impl Hash for WorkerSelector
impl Hash for WorkerSelector
Source§impl PartialEq for WorkerSelector
impl PartialEq for WorkerSelector
Source§impl Serialize for WorkerSelector
impl Serialize for WorkerSelector
impl Eq for WorkerSelector
impl StructuralPartialEq for WorkerSelector
Auto Trait Implementations§
impl Freeze for WorkerSelector
impl RefUnwindSafe for WorkerSelector
impl Send for WorkerSelector
impl Sync for WorkerSelector
impl Unpin for WorkerSelector
impl UnwindSafe for WorkerSelector
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