pub struct ShadowEnqueue {
pub req: ChatRequest,
pub cheap_response: ChatResponse,
pub cheap_model: String,
pub segment: String,
}Expand description
Glue type the proxy uses to enqueue shadow work without blocking.
Fields§
§req: ChatRequest§cheap_response: ChatResponse§cheap_model: String§segment: StringImplementations§
Source§impl ShadowEnqueue
impl ShadowEnqueue
pub fn from_request( req: &ChatRequest, cheap_response: &ChatResponse, cheap_model: &str, ) -> Self
Auto Trait Implementations§
impl Freeze for ShadowEnqueue
impl RefUnwindSafe for ShadowEnqueue
impl Send for ShadowEnqueue
impl Sync for ShadowEnqueue
impl Unpin for ShadowEnqueue
impl UnsafeUnpin for ShadowEnqueue
impl UnwindSafe for ShadowEnqueue
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