pub enum ToAgent {
Hello {
protocol: u32,
},
RunBatch {
id: u64,
tasks: Vec<Task>,
},
Cancel {
id: u64,
},
}Expand description
Controller to agent.
Variants§
Hello
RunBatch
Run these tasks in order. One batch at a time: the controller waits for BatchDone.
Cancel
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToAgent
impl<'de> Deserialize<'de> for ToAgent
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
impl StructuralPartialEq for ToAgent
Auto Trait Implementations§
impl Freeze for ToAgent
impl RefUnwindSafe for ToAgent
impl Send for ToAgent
impl Sync for ToAgent
impl Unpin for ToAgent
impl UnsafeUnpin for ToAgent
impl UnwindSafe for ToAgent
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