Struct tokio::runtime::task::UnownedTask
source · pub(crate) struct UnownedTask<S: 'static> {
raw: RawTask,
_p: PhantomData<S>,
}
Expand description
A task that is not owned by any OwnedTasks
. Used for blocking tasks.
This type holds two ref-counts.
Fields§
§raw: RawTask
§_p: PhantomData<S>
Implementations§
Trait Implementations§
source§impl<S: 'static> Drop for UnownedTask<S>
impl<S: 'static> Drop for UnownedTask<S>
impl<S> Send for UnownedTask<S>
impl<S> Sync for UnownedTask<S>
Auto Trait Implementations§
impl<S> Freeze for UnownedTask<S>
impl<S> !RefUnwindSafe for UnownedTask<S>
impl<S> Unpin for UnownedTask<S>where
S: Unpin,
impl<S> !UnwindSafe for UnownedTask<S>
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