pub struct WorkerSlot {
pub runner: Box<dyn ModelRunner>,
pub circuit_breaker: Arc<CircuitBreakerHandle>,
pub rate_limiter: RateLimiterHandle,
pub session: Arc<ArcSwap<SessionSnapshot>>,
pub retry_engine: Arc<RetryEngine>,
}Expand description
One worker slot. The runner is dyn so per-provider crates plug in
without RemoteWorkerActor knowing the concrete shape.
Fields§
§runner: Box<dyn ModelRunner>§circuit_breaker: Arc<CircuitBreakerHandle>§rate_limiter: RateLimiterHandle§session: Arc<ArcSwap<SessionSnapshot>>§retry_engine: Arc<RetryEngine>Auto Trait Implementations§
impl Freeze for WorkerSlot
impl !RefUnwindSafe for WorkerSlot
impl Send for WorkerSlot
impl Sync for WorkerSlot
impl Unpin for WorkerSlot
impl UnsafeUnpin for WorkerSlot
impl !UnwindSafe for WorkerSlot
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