pub struct SchedulerConfig {
pub workers: usize,
pub mailbox_config: MailboxConfig,
pub priority_scheduling: bool,
pub max_steal_batch: usize,
pub idle_sleep_us: u64,
pub stealer_refresh_interval: u32,
}Expand description
Configuration for the actor scheduler.
Fields§
§workers: usizeNumber of worker threads (0 = auto-detect)
mailbox_config: MailboxConfigMailbox configuration
priority_scheduling: boolEnable priority scheduling
max_steal_batch: usizeMaximum steal batch size
idle_sleep_us: u64Idle sleep duration in microseconds
stealer_refresh_interval: u32Stealer refresh interval (in iterations)
Implementations§
Trait Implementations§
Source§impl Clone for SchedulerConfig
impl Clone for SchedulerConfig
Source§impl Debug for SchedulerConfig
impl Debug for SchedulerConfig
Auto Trait Implementations§
impl Freeze for SchedulerConfig
impl RefUnwindSafe for SchedulerConfig
impl Send for SchedulerConfig
impl Sync for SchedulerConfig
impl Unpin for SchedulerConfig
impl UnsafeUnpin for SchedulerConfig
impl UnwindSafe for SchedulerConfig
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