pub struct QueuedRequest {
pub intent: RoutingIntent,
pub request: ChatCompletionRequest,
pub response_tx: Sender<QueueResponse>,
pub enqueued_at: Instant,
pub priority: Priority,
}Expand description
A request waiting in the queue
Fields§
§intent: RoutingIntentRouting intent from the reconciler pipeline
request: ChatCompletionRequestOriginal chat completion request
response_tx: Sender<QueueResponse>Channel to send the response back to the waiting handler
enqueued_at: InstantWhen the request was enqueued
priority: PriorityRequest priority
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueuedRequest
impl !RefUnwindSafe for QueuedRequest
impl Send for QueuedRequest
impl Sync for QueuedRequest
impl Unpin for QueuedRequest
impl UnsafeUnpin for QueuedRequest
impl !UnwindSafe for QueuedRequest
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