pub struct ProviderCandidate {
pub provider: Arc<dyn ModelProvider>,
pub profile: ModelProfile,
pub healthy: bool,
}Expand description
A profile the router is offering, with the provider that serves it.
Fields§
§provider: Arc<dyn ModelProvider>The adapter to call.
profile: ModelProfileIts routing profile.
healthy: boolWhether the pool considers it healthy right now.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderCandidate
impl Clone for ProviderCandidate
Auto Trait Implementations§
impl !RefUnwindSafe for ProviderCandidate
impl !UnwindSafe for ProviderCandidate
impl Freeze for ProviderCandidate
impl Send for ProviderCandidate
impl Sync for ProviderCandidate
impl Unpin for ProviderCandidate
impl UnsafeUnpin for ProviderCandidate
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