pub struct SchedulerConfig { /* private fields */ }Expand description
Maximum number of concurrent tasks allowed per agent.
Implementations§
Source§impl SchedulerConfig
impl SchedulerConfig
Sourcepub const fn new(max_concurrency: NonZeroUsize) -> Self
pub const fn new(max_concurrency: NonZeroUsize) -> Self
Creates a new configuration with the supplied concurrency limit.
Sourcepub const fn max_concurrency(self) -> NonZeroUsize
pub const fn max_concurrency(self) -> NonZeroUsize
Returns the configured concurrency limit.
Trait Implementations§
Source§impl Clone for SchedulerConfig
impl Clone for SchedulerConfig
Source§fn clone(&self) -> SchedulerConfig
fn clone(&self) -> SchedulerConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchedulerConfig
impl Debug for SchedulerConfig
Source§impl Default for SchedulerConfig
impl Default for SchedulerConfig
impl Copy 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 UnwindSafe for SchedulerConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)