pub enum UninitializedExecutor {
Shared(TaskExecutor),
Unspawned,
}
Expand description
Possibly uninitialized event loop executor.
Variants§
Implementations§
Source§impl UninitializedExecutor
impl UninitializedExecutor
Sourcepub fn initialize(self) -> Result<Executor>
pub fn initialize(self) -> Result<Executor>
Initializes executor.
In case there is no shared executor, will spawn a new event loop.
Dropping Executor
closes the loop.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UninitializedExecutor
impl !RefUnwindSafe for UninitializedExecutor
impl Send for UninitializedExecutor
impl Sync for UninitializedExecutor
impl Unpin for UninitializedExecutor
impl !UnwindSafe for UninitializedExecutor
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