pub struct BackendCtx<'a> {
pub config: &'a AiConfig,
pub effective_model: Option<String>,
pub effective_timeout: Duration,
pub verbose: u8,
}Expand description
Per-call context passed to each AiBackend::invoke. Holds the
effective config and a verbosity level for logging.
Fields§
§config: &'a AiConfig§effective_model: Option<String>§effective_timeout: Duration§verbose: u8Auto Trait Implementations§
impl<'a> Freeze for BackendCtx<'a>
impl<'a> RefUnwindSafe for BackendCtx<'a>
impl<'a> Send for BackendCtx<'a>
impl<'a> Sync for BackendCtx<'a>
impl<'a> Unpin for BackendCtx<'a>
impl<'a> UnsafeUnpin for BackendCtx<'a>
impl<'a> UnwindSafe for BackendCtx<'a>
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