pub enum TaskOutcome<Frntend, Bkend, Md> {
StreamClosed,
TaskPanicked {
error: JoinError,
type_id: TypeId,
type_name: &'static str,
type_debug: Arc<String>,
task_id: TaskId,
},
MutationReceived {
mutation: Box<dyn FnOnce(&mut Frntend) -> AsyncTask<Frntend, Bkend, Md> + Send>,
type_id: TypeId,
type_name: &'static str,
type_debug: Arc<String>,
task_id: TaskId,
},
}Variants§
StreamClosed
No task was recieved because a stream closed, but there are still more tasks.
TaskPanicked
No task was recieved because the next task panicked. Currently only applicable to Future type tasks.
Fields
MutationReceived
Mutation was received from a task.
Auto Trait Implementations§
impl<Frntend, Bkend, Md> Freeze for TaskOutcome<Frntend, Bkend, Md>
impl<Frntend, Bkend, Md> !RefUnwindSafe for TaskOutcome<Frntend, Bkend, Md>
impl<Frntend, Bkend, Md> Send for TaskOutcome<Frntend, Bkend, Md>
impl<Frntend, Bkend, Md> !Sync for TaskOutcome<Frntend, Bkend, Md>
impl<Frntend, Bkend, Md> Unpin for TaskOutcome<Frntend, Bkend, Md>
impl<Frntend, Bkend, Md> !UnwindSafe for TaskOutcome<Frntend, Bkend, Md>
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