pub struct DefaultRuntime {
name: String,
handle: Handle,
_dropper: Arc<Dropper>,
}
Expand description
A runtime to run future tasks
Fields§
§name: String
§handle: Handle
§_dropper: Arc<Dropper>
Implementations§
Trait Implementations§
source§impl BuilderBuild<DefaultRuntime> for Builder
impl BuilderBuild<DefaultRuntime> for Builder
fn build(&mut self) -> Result<DefaultRuntime>
source§impl Clone for DefaultRuntime
impl Clone for DefaultRuntime
source§fn clone(&self) -> DefaultRuntime
fn clone(&self) -> DefaultRuntime
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 Debug for DefaultRuntime
impl Debug for DefaultRuntime
source§impl RuntimeTrait for DefaultRuntime
impl RuntimeTrait for DefaultRuntime
source§fn spawn<F>(&self, future: F) -> JoinHandle<F::Output> ⓘ
fn spawn<F>(&self, future: F) -> JoinHandle<F::Output> ⓘ
Spawn a future and execute it in this thread pool
Similar to tokio::runtime::Runtime::spawn()
source§fn spawn_blocking<F, R>(&self, func: F) -> JoinHandle<R> ⓘ
fn spawn_blocking<F, R>(&self, func: F) -> JoinHandle<R> ⓘ
Run the provided function on an executor dedicated to blocking operations.
Auto Trait Implementations§
impl Freeze for DefaultRuntime
impl !RefUnwindSafe for DefaultRuntime
impl Send for DefaultRuntime
impl Sync for DefaultRuntime
impl Unpin for DefaultRuntime
impl !UnwindSafe for DefaultRuntime
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request