pub struct Executor<S> { /* private fields */ }Expand description
A Beetry executor parameterized by its lifecycle state.
Implementations§
Source§impl Executor<Init>
impl Executor<Init>
Sourcepub fn new(config: ExecutorConfig) -> Executor<WithRegistry>
pub fn new(config: ExecutorConfig) -> Executor<WithRegistry>
Creates a new executor with an internal bounded task channel.
The returned executor is still in its setup phase.
Source§impl Executor<WithRegistry>
impl Executor<WithRegistry>
Sourcepub fn into_ready_with_registry(self) -> (Executor<Ready>, TaskRegistry)
pub fn into_ready_with_registry(self) -> (Executor<Ready>, TaskRegistry)
Finalizes setup and returns both the runnable executor and its registry.
This is the transition point between initialization and runtime:
- the returned
Executor<Ready>can be driven withExecutorConcept::run - the returned
TaskRegistrycan be shared with code that needs to scheduleActionTaskvalues
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Executor<S>where
S: Freeze,
impl<S> RefUnwindSafe for Executor<S>where
S: RefUnwindSafe,
impl<S> Send for Executor<S>where
S: Send,
impl<S> Sync for Executor<S>where
S: Sync,
impl<S> Unpin for Executor<S>where
S: Unpin,
impl<S> UnsafeUnpin for Executor<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Executor<S>where
S: UnwindSafe,
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