pub struct ExecutorConfig {
pub sync_queue_size: usize,
pub local_queue_size: usize,
pub max_interval: u32,
pub waker: Option<Waker>,
}Expand description
Configuration for Executor.
Fields§
§sync_queue_size: usizeThe size of the sync queue, which holds task id’s for cross-thread wakes.
This is fixed and will create backpressure when full.
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 waken when a task is scheduled from other thread.
This is useful for waking up drivers that switch to kernel state when idle.
Enable notify-always feature to wake this waker on every schedule,
even if the executor is already awake.
Trait Implementations§
Source§impl Clone for ExecutorConfig
impl Clone for ExecutorConfig
Source§fn clone(&self) -> ExecutorConfig
fn clone(&self) -> ExecutorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutorConfig
impl Debug for ExecutorConfig
Auto Trait Implementations§
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