Struct async_executors::exec::TokioTpBuilder
source · [−]pub struct TokioTpBuilder { /* private fields */ }
Expand description
Builder to create a TokioTp
executor. This guarantees that TokioTp
always has a runtime that is multi-threaded,
as tokio does not make this information available on it’s Runtime
type.
Further allows you access to the tokio builder so you can set the other configuration options on it as you see fit.
Implementations
sourceimpl TokioTpBuilder
impl TokioTpBuilder
sourcepub fn tokio_builder(&mut self) -> &mut Builder
pub fn tokio_builder(&mut self) -> &mut Builder
Returns the builder from tokio so you can configure it, see: Builder.
If you mem::swap
it, your warranty is void.
Trait Implementations
sourceimpl Debug for TokioTpBuilder
impl Debug for TokioTpBuilder
Auto Trait Implementations
impl !RefUnwindSafe for TokioTpBuilder
impl Send for TokioTpBuilder
impl Sync for TokioTpBuilder
impl Unpin for TokioTpBuilder
impl !UnwindSafe for TokioTpBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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