pub struct RuntimeBuilder { /* private fields */ }Implementations§
Source§impl RuntimeBuilder
impl RuntimeBuilder
Sourcepub fn new_no_local() -> Self
pub fn new_no_local() -> Self
Start building a runtime that is not used on the current thread.
Sourcepub fn new_with_local(spawner: LocalSpawner) -> Self
pub fn new_with_local(spawner: LocalSpawner) -> Self
Start building a runtime can be used on the current thread.
pub fn new_worker_group(&mut self, worker_count: u16) -> WorkerGroup
pub fn start<E: ModrpcExecutor>(self) -> (RuntimeHandle, RuntimeShutdownHandle)
Auto Trait Implementations§
impl Freeze for RuntimeBuilder
impl !RefUnwindSafe for RuntimeBuilder
impl !Send for RuntimeBuilder
impl !Sync for RuntimeBuilder
impl Unpin for RuntimeBuilder
impl !UnwindSafe for RuntimeBuilder
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