Skip to main content

shepherd_rs/worker/
worker_instance.rs

1//! # Worker Instance Trait
2//!
3//! This trait defines the behavior of worker instances in the shepherd
4//! framework.
5//!
6//! ## Overview
7//! - **WorkerInstance**: Represents a worker instance that processes
8//!   transformation attempts.
9//!
10//! ## Example
11//! ```rust
12//! struct MyWorkerInstance;
13//!
14//! impl WorkerInstance for MyWorkerInstance {
15//!     // Implementation details...
16//! }
17//! ```
18
19use async_trait::async_trait;
20
21#[async_trait]
22pub trait WorkerInstance {
23    type TransformAttempt;
24
25    async fn wi_loop();
26}