Struct photonio_uring::runtime::Runtime
source · pub struct Runtime(_);
Expand description
The PhotonIO runtime.
Implementations
sourceimpl Runtime
impl Runtime
sourcepub fn block_on<F>(&self, future: F) -> F::Outputwhere
F: Future + Send + 'static,
F::Output: Send + 'static,
pub fn block_on<F>(&self, future: F) -> F::Outputwhere
F: Future + Send + 'static,
F::Output: Send + 'static,
Runs a future to completion.
sourcepub fn spawn<F>(&self, future: F) -> JoinHandle<F::Output>ⓘNotable traits for JoinHandle<T>impl<T> Future for JoinHandle<T> type Output = Result<T>;
where
F: Future + Send + 'static,
F::Output: Send + 'static,
pub fn spawn<F>(&self, future: F) -> JoinHandle<F::Output>ⓘNotable traits for JoinHandle<T>impl<T> Future for JoinHandle<T> type Output = Result<T>;
where
F: Future + Send + 'static,
F::Output: Send + 'static,
Spawns a future onto this runtime.
Auto Trait Implementations
impl !RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl !UnwindSafe for Runtime
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more