pub struct NativeWorkerStatusChanges { /* private fields */ }Expand description
Receiver for dedicated worker-thread status changes.
Implementations§
Source§impl NativeWorkerStatusChanges
impl NativeWorkerStatusChanges
Sourcepub fn current(&self) -> NativeWorkerStatus
pub fn current(&self) -> NativeWorkerStatus
Returns the latest worker status without waiting.
Sourcepub async fn changed(&mut self) -> Result<NativeWorkerStatus, NativeEventError>
pub async fn changed(&mut self) -> Result<NativeWorkerStatus, NativeEventError>
Waits for and returns the next worker status.
Auto Trait Implementations§
impl Freeze for NativeWorkerStatusChanges
impl RefUnwindSafe for NativeWorkerStatusChanges
impl Send for NativeWorkerStatusChanges
impl Sync for NativeWorkerStatusChanges
impl Unpin for NativeWorkerStatusChanges
impl UnsafeUnpin for NativeWorkerStatusChanges
impl UnwindSafe for NativeWorkerStatusChanges
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