pub enum Event {
Start,
Engage(TaskId),
Idle,
Custom(String),
Error(BoxDynError),
Stop,
Exit,
}
Expand description
Events emitted by a worker
Variants§
Start
Worker started
Engage(TaskId)
Worker got a job
Idle
Worker is idle, stream has no new request for now
Custom(String)
A custom event
Error(BoxDynError)
Worker encountered an error
Stop
Worker stopped
Exit
Worker completed all pending tasks
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl !RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl !UnwindSafe for Event
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