pub enum UninitializedExecutor {
Shared(TaskExecutor),
Unspawned,
}
Expand description
Possibly uninitialized event loop executor.
Variants
Shared(TaskExecutor)
Shared instance of executor.
Unspawned
Event Loop should be spawned by the transport.
Implementations
sourceimpl 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 !RefUnwindSafe for UninitializedExecutor
impl Send for UninitializedExecutor
impl Sync for UninitializedExecutor
impl Unpin for UninitializedExecutor
impl !UnwindSafe for UninitializedExecutor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more