pub enum TokioRuntime {
Default,
Handle(Handle),
}
Expand description
Represents a tokio runtime on which to spawn tasks.
Variants§
Default
Represents the default global tokio runtime, i.e. to use tokio::spawn
Handle(Handle)
Encapsulates a tokio::runtime::Handle to use to spawn tasks.
Implementations§
Trait Implementations§
Source§impl Clone for TokioRuntime
impl Clone for TokioRuntime
Source§fn clone(&self) -> TokioRuntime
fn clone(&self) -> TokioRuntime
Returns a duplicate 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 TokioRuntime
impl Debug for TokioRuntime
Source§impl Default for TokioRuntime
impl Default for TokioRuntime
Source§fn default() -> TokioRuntime
fn default() -> TokioRuntime
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TokioRuntime
impl !RefUnwindSafe for TokioRuntime
impl Send for TokioRuntime
impl Sync for TokioRuntime
impl Unpin for TokioRuntime
impl !UnwindSafe for TokioRuntime
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