pub enum Message {
Register(RegisterWorkerRequest),
Availability(AvailabilityResponse),
UpdateWorker(UpdateWorkerStatus),
UpdateJob(UpdateJobStatus),
Ping(WorkerPing),
SimulateJob(SimulateJobRequest),
MigrateJob(MigrateJobRequest),
}
Variants§
Register(RegisterWorkerRequest)
agent workers need to register themselves with the server first
Availability(AvailabilityResponse)
worker confirms to server that it’s available for a job, or declines it
UpdateWorker(UpdateWorkerStatus)
worker can update its status to the server, including taking itself out of the pool
UpdateJob(UpdateJobStatus)
job can send status updates to the server, useful for tracking progress
Ping(WorkerPing)
SimulateJob(SimulateJobRequest)
MigrateJob(MigrateJobRequest)
Implementations§
Source§impl Message
impl Message
Sourcepub fn merge<B>(
field: &mut Option<Message>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<Message>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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