pub struct DispatchConfig {
pub maximum_pending: usize,
pub maximum_batch_per_drain: usize,
pub default_timeout: Option<Duration>,
pub maximum_drain_duration: Option<Duration>,
}Expand description
Bounds for one cooperative dispatcher generation.
Fields§
§maximum_pending: usizeMaximum queued and selected requests retained by this generation.
maximum_batch_per_drain: usizeMaximum compatible requests one callback drain may select.
default_timeout: Option<Duration>Optional deadline assigned to requests without an explicit deadline.
maximum_drain_duration: Option<Duration>Optional wall-clock budget for one callback drain.
Trait Implementations§
Source§impl Clone for DispatchConfig
impl Clone for DispatchConfig
impl Copy for DispatchConfig
Source§impl Debug for DispatchConfig
impl Debug for DispatchConfig
Source§impl Default for DispatchConfig
impl Default for DispatchConfig
impl Eq for DispatchConfig
Source§impl PartialEq for DispatchConfig
impl PartialEq for DispatchConfig
impl StructuralPartialEq for DispatchConfig
Auto Trait Implementations§
impl Freeze for DispatchConfig
impl RefUnwindSafe for DispatchConfig
impl Send for DispatchConfig
impl Sync for DispatchConfig
impl Unpin for DispatchConfig
impl UnsafeUnpin for DispatchConfig
impl UnwindSafe for DispatchConfig
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