pub struct Worker<S>where
S: State,{ /* private fields */ }Expand description
Runs crate::Jobs.
Implementations§
Source§impl<S> Worker<S>where
S: State,
impl<S> Worker<S>where
S: State,
Sourcepub async fn get_output(&mut self) -> Result<Output, &'static str>
pub async fn get_output(&mut self) -> Result<Output, &'static str>
Sourcepub async fn data(&self) -> HashMap<String, Value>
pub async fn data(&self) -> HashMap<String, Value>
Return the data collected from running the job.
pub async fn status(&self) -> HashMap<&'static str, NodeState>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Worker<S>
impl<S> !RefUnwindSafe for Worker<S>
impl<S> Send for Worker<S>
impl<S> Sync for Worker<S>
impl<S> Unpin for Worker<S>
impl<S> !UnwindSafe for Worker<S>
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