pub struct PredictCtx { /* private fields */ }Expand description
Router state for the predict HTTP surface: the PredictHost that inverts the
kernel couplings (enabled flag, preferences, agent-bound model, default model,
Gateway side-model call). Cloneable so the router bakes a concrete state and
returns Router<()>.
Implementations§
Source§impl PredictCtx
impl PredictCtx
pub fn new(host: Arc<dyn PredictHost>) -> Self
Trait Implementations§
Source§impl Clone for PredictCtx
impl Clone for PredictCtx
Source§fn clone(&self) -> PredictCtx
fn clone(&self) -> PredictCtx
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PredictCtx
impl !UnwindSafe for PredictCtx
impl Freeze for PredictCtx
impl Send for PredictCtx
impl Sync for PredictCtx
impl Unpin for PredictCtx
impl UnsafeUnpin for PredictCtx
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