pub struct DefaultDispatcher { /* private fields */ }Expand description
Default dispatcher — uses the ambient Tokio runtime.
Implementations§
Source§impl DefaultDispatcher
impl DefaultDispatcher
pub fn new(handle: Handle, throughput: u32) -> Self
pub fn with_config(handle: Handle, config: DispatcherConfig) -> Self
pub fn current() -> Self
Trait Implementations§
Source§impl Dispatcher for DefaultDispatcher
impl Dispatcher for DefaultDispatcher
fn spawn_task(&self, task: BoxFuture<'static, ()>) -> DispatcherHandle
fn throughput(&self) -> u32
Source§fn throughput_deadline(&self) -> Option<Duration>
fn throughput_deadline(&self) -> Option<Duration>
None is unbounded.Auto Trait Implementations§
impl Freeze for DefaultDispatcher
impl RefUnwindSafe for DefaultDispatcher
impl Send for DefaultDispatcher
impl Sync for DefaultDispatcher
impl Unpin for DefaultDispatcher
impl UnsafeUnpin for DefaultDispatcher
impl UnwindSafe for DefaultDispatcher
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