pub struct ResponseRuntimeTargets<'a> { /* private fields */ }Expand description
Bundles the eval targets a response run may dispatch to: the runner registry and an optional federation surface for cross-node eval.
Implementations§
Source§impl<'a> ResponseRuntimeTargets<'a>
impl<'a> ResponseRuntimeTargets<'a>
Sourcepub fn runners(runners: &'a OpenAiRunnerRegistry) -> Self
pub fn runners(runners: &'a OpenAiRunnerRegistry) -> Self
Builds targets backed by the runner registry alone, with no federation.
Sourcepub fn with_federation(
runners: &'a OpenAiRunnerRegistry,
federation: &'a OpenAiFederation,
) -> Self
pub fn with_federation( runners: &'a OpenAiRunnerRegistry, federation: &'a OpenAiFederation, ) -> Self
Builds targets backed by both the runner registry and a federation surface.
Sourcepub fn runners_ref(self) -> &'a OpenAiRunnerRegistry
pub fn runners_ref(self) -> &'a OpenAiRunnerRegistry
Returns the runner registry.
Sourcepub fn federation_ref(self) -> Option<&'a OpenAiFederation>
pub fn federation_ref(self) -> Option<&'a OpenAiFederation>
Returns the federation surface, if one was configured.
Trait Implementations§
Source§impl<'a> Clone for ResponseRuntimeTargets<'a>
impl<'a> Clone for ResponseRuntimeTargets<'a>
Source§fn clone(&self) -> ResponseRuntimeTargets<'a>
fn clone(&self) -> ResponseRuntimeTargets<'a>
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 moreimpl<'a> Copy for ResponseRuntimeTargets<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ResponseRuntimeTargets<'a>
impl<'a> !UnwindSafe for ResponseRuntimeTargets<'a>
impl<'a> Freeze for ResponseRuntimeTargets<'a>
impl<'a> Send for ResponseRuntimeTargets<'a>
impl<'a> Sync for ResponseRuntimeTargets<'a>
impl<'a> Unpin for ResponseRuntimeTargets<'a>
impl<'a> UnsafeUnpin for ResponseRuntimeTargets<'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