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§
Source§impl Clone for CoroutineScope
impl Clone for CoroutineScope
Source§fn clone(&self) -> CoroutineScope
fn clone(&self) -> CoroutineScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !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