pub struct TaskHandle<T> { /* private fields */ }Expand description
Public task control surface; also a Future (handle.await == awaiting
completion, as in cocotb 2.x). Port of cocotb Task (design-doc §4.3).
Implementations§
Trait Implementations§
Source§impl<T> Clone for TaskHandle<T>
impl<T> Clone for TaskHandle<T>
Source§impl<T> Future for TaskHandle<T>
impl<T> Future for TaskHandle<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TaskHandle<T>
impl<T> !Send for TaskHandle<T>
impl<T> !Sync for TaskHandle<T>
impl<T> !UnwindSafe for TaskHandle<T>
impl<T> Freeze for TaskHandle<T>
impl<T> Unpin for TaskHandle<T>
impl<T> UnsafeUnpin for TaskHandle<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more