pub struct QueueHandle { /* private fields */ }Implementations§
Source§impl QueueHandle
impl QueueHandle
pub async fn submit( &self, request: JobRequest, weight: NonZeroU32, ) -> Result<JobTicket, WorkerError>
pub fn subscribe(&self) -> Receiver<TelemetryEvent>
pub async fn snapshot(&self) -> Vec<QueueSnapshot>
pub async fn wait_idle(&self)
pub async fn is_idle(&self) -> bool
Trait Implementations§
Source§impl Clone for QueueHandle
impl Clone for QueueHandle
Source§fn clone(&self) -> QueueHandle
fn clone(&self) -> QueueHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueueHandle
impl !RefUnwindSafe for QueueHandle
impl Send for QueueHandle
impl Sync for QueueHandle
impl Unpin for QueueHandle
impl !UnwindSafe for QueueHandle
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