pub struct TargetEndpoint {
pub base_url: String,
pub model: String,
pub serve_overrides: BTreeMap<String, String>,
}Expand description
2026-09-26: The served endpoint a benchmark drives. In the TUI it starts as the local server, and the Benchmarks pane can point it at another URL or model.
Default is the empty endpoint: host_port rejects it, so
http::probe fails on it.
Fields§
§base_url: String2026-09-26: Base URL with no trailing slash, e.g.
http://127.0.0.1:8888.
model: String2026-09-26: The model field sent in requests.
serve_overrides: BTreeMap<String, String>2026-09-26: The serve overrides the caller started this target under.
The headless run record takes its serve_overrides from here, and the
concurrency sweep reads ssm_cache_slots from here. Empty when the
caller did not start the server, which means “not stated”, never “no
overrides”.
Implementations§
Source§impl TargetEndpoint
impl TargetEndpoint
pub fn new(base_url: impl Into<String>, model: impl Into<String>) -> Self
Sourcepub fn with_serve_overrides(
self,
serve_overrides: BTreeMap<String, String>,
) -> Self
pub fn with_serve_overrides( self, serve_overrides: BTreeMap<String, String>, ) -> Self
2026-09-26: The same endpoint, with the overrides it was started under.
Sourcepub fn serve_override_usize(&self, key: &str) -> Option<usize>
pub fn serve_override_usize(&self, key: &str) -> Option<usize>
2026-09-26: An override the server was started with, parsed as an
integer. None when it was not stated or does not parse.
Sourcepub fn is_loopback(&self) -> bool
pub fn is_loopback(&self) -> bool
2026-09-26: Is this endpoint served on this box?
The energy meter records the local GPU rail only for a loopback target; for any other host the local reading describes another machine. An unparseable target is not local.
Trait Implementations§
Source§impl Clone for TargetEndpoint
impl Clone for TargetEndpoint
Source§fn clone(&self) -> TargetEndpoint
fn clone(&self) -> TargetEndpoint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TargetEndpoint
impl Debug for TargetEndpoint
Source§impl Default for TargetEndpoint
impl Default for TargetEndpoint
Source§fn default() -> TargetEndpoint
fn default() -> TargetEndpoint
Source§impl PartialEq for TargetEndpoint
impl PartialEq for TargetEndpoint
impl Eq for TargetEndpoint
impl StructuralPartialEq for TargetEndpoint
Auto Trait Implementations§
impl Freeze for TargetEndpoint
impl RefUnwindSafe for TargetEndpoint
impl Send for TargetEndpoint
impl Sync for TargetEndpoint
impl Unpin for TargetEndpoint
impl UnwindSafe for TargetEndpoint
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more