pub struct RootContext<'poll, 'd: 'poll, R> { /* private fields */ }Expand description
Runtime poll capability tying one exact root and driver to a poll.
ⓘ
fn retag<'a, 'd: 'a, A, B>(value: dope_runtime::executor::RootContext<'a, 'd, A>) -> dope_runtime::executor::RootContext<'a, 'd, B> { value }ⓘ
let _ = dope_runtime::executor::RootContext::<()>::new(todo!(), todo!(), todo!());ⓘ
fn escape<'a, 'd: 'a, R>(value: dope_runtime::executor::RootContext<'a, 'd, R>) -> std::pin::Pin<&'d mut R> { value.into_parts().0 }Implementations§
Source§impl<'poll, 'd: 'poll, R> RootContext<'poll, 'd, R>
impl<'poll, 'd: 'poll, R> RootContext<'poll, 'd, R>
pub fn into_parts( self, ) -> (Pin<&'poll mut R>, Target<'d>, Application<'poll, 'd>, Context<'poll, 'poll, 'd>)
Auto Trait Implementations§
impl<'poll, 'd, R> !RefUnwindSafe for RootContext<'poll, 'd, R>
impl<'poll, 'd, R> !Send for RootContext<'poll, 'd, R>
impl<'poll, 'd, R> !Sync for RootContext<'poll, 'd, R>
impl<'poll, 'd, R> !UnwindSafe for RootContext<'poll, 'd, R>
impl<'poll, 'd, R> Freeze for RootContext<'poll, 'd, R>
impl<'poll, 'd, R> Unpin for RootContext<'poll, 'd, R>
impl<'poll, 'd, R> UnsafeUnpin for RootContext<'poll, 'd, R>
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