pub enum TaskOutcome<Frntend, Bkend, Md> {
StreamFinished {
type_id: TypeId,
type_name: &'static str,
type_debug: Arc<String>,
task_id: TaskId,
},
StreamPanicked {
error: JoinError,
type_id: TypeId,
type_name: &'static str,
type_debug: Arc<String>,
task_id: TaskId,
},
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§
StreamFinished
The stream has completed, it won’t be sending any more tasks.
StreamPanicked
The stream has panicked, it won’t be sending any more tasks.
Fields
TaskPanicked
No task was recieved because the next task panicked.
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