pub struct CoroutineScope { /* private fields */ }Expand description
A cancellation scope for work launched outside the composition pass.
Tasks launched through a scope are cancelled when the scope leaves the composition, so a click handler can start an asynchronous job without the job outliving the screen that started it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CoroutineScope
impl !Send for CoroutineScope
impl !Sync for CoroutineScope
impl !UnwindSafe for CoroutineScope
impl Freeze for CoroutineScope
impl Unpin for CoroutineScope
impl UnsafeUnpin for CoroutineScope
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