Struct tokio::runtime::task::LocalNotified
source · #[repr(transparent)]pub(crate) struct LocalNotified<S: 'static> {
task: Task<S>,
_not_send: PhantomData<*const ()>,
}
Expand description
A non-Send variant of Notified with the invariant that it is on a thread where it is safe to poll it.
Fields§
§task: Task<S>
§_not_send: PhantomData<*const ()>
Implementations§
Auto Trait Implementations§
impl<S> Freeze for LocalNotified<S>
impl<S> !RefUnwindSafe for LocalNotified<S>
impl<S> !Send for LocalNotified<S>
impl<S> !Sync for LocalNotified<S>
impl<S> Unpin for LocalNotified<S>where
S: Unpin,
impl<S> !UnwindSafe for LocalNotified<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