[−][src]Struct nostd_async::Task
An asyncronous task
Implementations
impl<'t, F: Future<Output = T> + 't, T: 't> Task<'t, F, T>
[src]
pub fn new(future: F) -> Self
[src]
Create a new task from a future
pub fn spawn(&'t mut self, runtime: &'t Runtime) -> JoinHandle<'t, T>
[src]
Spawn the task into the given runtime. Note that the task will not be run until a join handle is joined.
Auto Trait Implementations
impl<'t, F, T> !Send for Task<'t, F, T>
impl<'t, F, T> !Sync for Task<'t, F, T>
impl<'t, F, T> Unpin for Task<'t, F, T> where
F: Unpin,
T: Unpin,
F: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,