pub struct Dispatcher<T> { /* private fields */ }Implementations§
Source§impl<T> Dispatcher<T>
impl<T> Dispatcher<T>
Sourcepub fn new(scheduler: AsyncScheduler<T>, max_in_flight: usize) -> Self
pub fn new(scheduler: AsyncScheduler<T>, max_in_flight: usize) -> Self
Creates a dispatcher with bounded in-flight handler executions.
Auto Trait Implementations§
impl<T> Freeze for Dispatcher<T>
impl<T> !RefUnwindSafe for Dispatcher<T>
impl<T> Send for Dispatcher<T>where
T: Send,
impl<T> Sync for Dispatcher<T>where
T: Send,
impl<T> Unpin for Dispatcher<T>
impl<T> !UnwindSafe for Dispatcher<T>
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