pub struct AsyncCallbackManager<Frntend, Bkend, Md> { /* private fields */ }Implementations§
Source§impl<Frntend, Bkend, Md: PartialEq> AsyncCallbackManager<Frntend, Bkend, Md>
impl<Frntend, Bkend, Md: PartialEq> AsyncCallbackManager<Frntend, Bkend, Md>
pub fn with_on_task_spawn_callback( self, cb: impl Fn(TaskInformation<'_, Md>) + 'static, ) -> Self
Sourcepub async fn get_next_response(
&mut self,
) -> Option<TaskOutcome<Frntend, Bkend, Md>>
pub async fn get_next_response( &mut self, ) -> Option<TaskOutcome<Frntend, Bkend, Md>>
Await for the next response from one of the spawned tasks, or returns None if no tasks were in the list.
pub fn spawn_task(
&mut self,
backend: &Bkend,
task: AsyncTask<Frntend, Bkend, Md>,
)where
Frntend: 'static,
Bkend: 'static,
Md: 'static,
Trait Implementations§
Auto Trait Implementations§
impl<Frntend, Bkend, Md> Freeze for AsyncCallbackManager<Frntend, Bkend, Md>
impl<Frntend, Bkend, Md> !RefUnwindSafe for AsyncCallbackManager<Frntend, Bkend, Md>
impl<Frntend, Bkend, Md> !Send for AsyncCallbackManager<Frntend, Bkend, Md>
impl<Frntend, Bkend, Md> !Sync for AsyncCallbackManager<Frntend, Bkend, Md>
impl<Frntend, Bkend, Md> Unpin for AsyncCallbackManager<Frntend, Bkend, Md>where
Md: Unpin,
impl<Frntend, Bkend, Md> !UnwindSafe for AsyncCallbackManager<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