pub enum Message {
Shutdown {
id: String,
},
Spawn {
task: Task,
},
}
Expand description
Control messages sent by the server handler to the supervisor.
Variants§
Shutdown
Shutdown a worker process using it’s opaque identifier.
If the worker is a daemon it will not be restarted.
Spawn
Spawn a new worker process.
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