pub enum ModelTaskMessage {
RawMessage(Message),
Done {
thread_id: ThreadId,
response: Option<String>,
},
Error {
thread_id: ThreadId,
message: String,
},
}Expand description
A message from a spawned model task back to the main connection handler.
Variants§
RawMessage(Message)
A raw WebSocket message to send to the client
Done
The model task completed successfully. The main loop should update thread state.
Fields
Error
The model task failed with an error
Trait Implementations§
Source§impl Clone for ModelTaskMessage
impl Clone for ModelTaskMessage
Source§fn clone(&self) -> ModelTaskMessage
fn clone(&self) -> ModelTaskMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for ModelTaskMessage
impl RefUnwindSafe for ModelTaskMessage
impl Send for ModelTaskMessage
impl Sync for ModelTaskMessage
impl Unpin for ModelTaskMessage
impl UnsafeUnpin for ModelTaskMessage
impl UnwindSafe for ModelTaskMessage
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