Struct cros_async::tokio_executor::TokioExecutor
source · pub struct TokioExecutor {
runtime: Arc<Runtime>,
local_set: Arc<OnceLock<SendWrapper<LocalSet>>>,
}
Fields§
§runtime: Arc<Runtime>
§local_set: Arc<OnceLock<SendWrapper<LocalSet>>>
Implementations§
source§impl TokioExecutor
impl TokioExecutor
pub fn new() -> AsyncResult<Self>
Trait Implementations§
source§impl AsRawDescriptors for TokioExecutor
impl AsRawDescriptors for TokioExecutor
source§fn as_raw_descriptors(&self) -> Vec<RawDescriptor>
fn as_raw_descriptors(&self) -> Vec<RawDescriptor>
Returns the underlying raw descriptors. Read more
source§impl Clone for TokioExecutor
impl Clone for TokioExecutor
source§fn clone(&self) -> TokioExecutor
fn clone(&self) -> TokioExecutor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ExecutorTrait for TokioExecutor
impl ExecutorTrait for TokioExecutor
fn async_from<'a, F: IntoAsync + 'a>(&self, f: F) -> AsyncResult<IoSource<F>>
fn run_until<F: Future>(&self, f: F) -> AsyncResult<F::Output>
fn spawn<F>(&self, f: F) -> TaskHandle<F::Output> ⓘ
fn spawn_blocking<F, R>(&self, f: F) -> TaskHandle<R> ⓘ
fn spawn_local<F>(&self, f: F) -> TaskHandle<F::Output> ⓘ
Auto Trait Implementations§
impl !RefUnwindSafe for TokioExecutor
impl Send for TokioExecutor
impl Sync for TokioExecutor
impl Unpin for TokioExecutor
impl !UnwindSafe for TokioExecutor
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