pub struct JobExecutor { /* private fields */ }Implementations§
Source§impl JobExecutor
impl JobExecutor
pub fn new( backends: Vec<DiscoveredBackend>, max_concurrent: u32, out_tx: Sender<Message>, ) -> Self
Sourcepub fn queue_depth(&self) -> u32
pub fn queue_depth(&self) -> u32
Number of currently-executing jobs. Useful for heartbeat reporting.
Auto Trait Implementations§
impl Freeze for JobExecutor
impl !RefUnwindSafe for JobExecutor
impl Send for JobExecutor
impl Sync for JobExecutor
impl Unpin for JobExecutor
impl UnsafeUnpin for JobExecutor
impl !UnwindSafe for JobExecutor
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