pub enum AsyncFlavor {
CurrentThread,
AllThreads,
WorkerThreads(usize),
}Expand description
Specifies the type of Tokio runtime to create.
Variants§
CurrentThread
Creates a Tokio runtime with a single thread.
AllThreads
Creates a Tokio runtime with all available threads.
WorkerThreads(usize)
Creates a Tokio runtime with the specified number of worker threads.
Auto Trait Implementations§
impl Freeze for AsyncFlavor
impl RefUnwindSafe for AsyncFlavor
impl Send for AsyncFlavor
impl Sync for AsyncFlavor
impl Unpin for AsyncFlavor
impl UnwindSafe for AsyncFlavor
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