pub struct ExecutorConfig {
pub local_queue_size: usize,
pub max_interval: u32,
pub waker: Option<Waker>,
}Expand description
Configuration for Executor.
Fields§
§local_queue_size: usizeThe size of the local queues, which hold tasks for same-thread execution.
This is dynamically resized to avoid blocking.
max_interval: u32The maximum number of hot tasks to run in each tick.
waker: Option<Waker>A waker to be woken when a task is scheduled.
This is useful for waking up drivers that switch to kernel state when idle.
Trait Implementations§
Source§impl Clone for ExecutorConfig
impl Clone for ExecutorConfig
Source§impl Debug for ExecutorConfig
impl Debug for ExecutorConfig
Auto Trait Implementations§
impl Forget for ExecutorConfig
impl Freeze for ExecutorConfig
impl RefUnwindSafe for ExecutorConfig
impl Send for ExecutorConfig
impl Sync for ExecutorConfig
impl Unpin for ExecutorConfig
impl UnsafeUnpin for ExecutorConfig
impl UnwindSafe for ExecutorConfig
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