pub struct WorkerRegistration {
pub worker_id: String,
pub supported_tasks: Vec<String>,
pub max_concurrency: u32,
pub language: WorkerLanguage,
}Expand description
Registration payload sent by a worker when it connects.
Fields§
§worker_id: String§supported_tasks: Vec<String>§max_concurrency: u32§language: WorkerLanguageTrait Implementations§
Source§impl Clone for WorkerRegistration
impl Clone for WorkerRegistration
Source§fn clone(&self) -> WorkerRegistration
fn clone(&self) -> WorkerRegistration
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 moreSource§impl Debug for WorkerRegistration
impl Debug for WorkerRegistration
Source§impl<'de> Deserialize<'de> for WorkerRegistration
impl<'de> Deserialize<'de> for WorkerRegistration
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 WorkerRegistration
impl RefUnwindSafe for WorkerRegistration
impl Send for WorkerRegistration
impl Sync for WorkerRegistration
impl Unpin for WorkerRegistration
impl UnsafeUnpin for WorkerRegistration
impl UnwindSafe for WorkerRegistration
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