pub struct EpochConfig {
pub interval_ns: u64,
pub max_switches: u16,
}Expand description
Configuration for a scheduler epoch.
Fields§
§interval_ns: u64Epoch interval in nanoseconds.
max_switches: u16Maximum partitions to switch per epoch.
Trait Implementations§
Source§impl Clone for EpochConfig
impl Clone for EpochConfig
Source§fn clone(&self) -> EpochConfig
fn clone(&self) -> EpochConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EpochConfig
Source§impl Debug for EpochConfig
impl Debug for EpochConfig
Auto Trait Implementations§
impl Freeze for EpochConfig
impl RefUnwindSafe for EpochConfig
impl Send for EpochConfig
impl Sync for EpochConfig
impl Unpin for EpochConfig
impl UnsafeUnpin for EpochConfig
impl UnwindSafe for EpochConfig
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