pub struct Scope<'a> { /* private fields */ }Expand description
Scope manages a set of tasks that are enqueued and waited on together. See BackgroundExecutor::scoped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Scope<'a>
impl<'a> !Sync for Scope<'a>
impl<'a> !UnwindSafe for Scope<'a>
impl<'a> Forget for Scope<'a>
impl<'a> Freeze for Scope<'a>where
*const ArcInner<dyn Scheduler> is !null: Freeze,
PhantomData<ArcInner<dyn Scheduler>>: Freeze,
*const ArcInner<dyn PlatformDispatcher> is !null: Freeze,
PhantomData<ArcInner<dyn PlatformDispatcher>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Pin<Box<dyn Future<Output = ()> + Send>>>: Freeze,
*const ArcInner<BoundedInner<()>> is !null: Freeze,
PhantomData<ArcInner<BoundedInner<()>>>: Freeze,
*const ArcInner<Mutex<SenderTask>> is !null: Freeze,
PhantomData<ArcInner<Mutex<SenderTask>>>: Freeze,
PhantomData<&'a ()>: Freeze,
impl<'a> Move for Scope<'a>
impl<'a> Send for Scope<'a>
impl<'a> Unpin for Scope<'a>
impl<'a> UnsafeUnpin for Scope<'a>where
*const ArcInner<dyn Scheduler> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Scheduler>>: UnsafeUnpin,
*const ArcInner<dyn PlatformDispatcher> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn PlatformDispatcher>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Pin<Box<dyn Future<Output = ()> + Send>>>: UnsafeUnpin,
*const ArcInner<BoundedInner<()>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BoundedInner<()>>>: UnsafeUnpin,
*const ArcInner<Mutex<SenderTask>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<SenderTask>>>: UnsafeUnpin,
PhantomData<&'a ()>: UnsafeUnpin,
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more