pub struct AiService {
pub config: AiConfig,
/* private fields */
}Expand description
Resolved AI service state held by crate::state::AppState: the
configuration plus one lazily built HTTP client.
The client is built once (first proxied request) so a broken root store
surfaces as a per-request 502, not a startup panic, and so every
handler state clone shares one connection pool.
Fields§
§config: AiConfigResolved configuration (public: discovery and waratah_bin read it).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AiService
impl !RefUnwindSafe for AiService
impl Send for AiService
impl Sync for AiService
impl Unpin for AiService
impl UnsafeUnpin for AiService
impl !UnwindSafe for AiService
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].