pub struct Worker { /* private fields */ }Expand description
Background worker that polls the API and executes workflows.
Implementations§
Source§impl Worker
impl Worker
Sourcepub async fn run(&self) -> Result<(), WorkerError>
pub async fn run(&self) -> Result<(), WorkerError>
Run the worker loop. Blocks until an error occurs or the process exits.
§Errors
Returns WorkerError if the polling loop encounters an unrecoverable error.
Auto Trait Implementations§
impl Freeze for Worker
impl !RefUnwindSafe for Worker
impl Send for Worker
impl Sync for Worker
impl Unpin for Worker
impl UnsafeUnpin for Worker
impl !UnwindSafe for Worker
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