pub struct BackgroundTaskRuntimeComponent { /* private fields */ }Expand description
Runtime component that owns spawned background task handles.
Implementations§
Source§impl BackgroundTaskRuntimeComponent
impl BackgroundTaskRuntimeComponent
Sourcepub const fn new(background_tasks: BackgroundTasks) -> Self
pub const fn new(background_tasks: BackgroundTasks) -> Self
Creates a background task runtime component from spawned task handles.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BackgroundTaskRuntimeComponent
impl !RefUnwindSafe for BackgroundTaskRuntimeComponent
impl Send for BackgroundTaskRuntimeComponent
impl Sync for BackgroundTaskRuntimeComponent
impl Unpin for BackgroundTaskRuntimeComponent
impl UnsafeUnpin for BackgroundTaskRuntimeComponent
impl !UnwindSafe for BackgroundTaskRuntimeComponent
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