pub struct RunningTarget {
pub base_url: String,
pub port: u16,
pub model_id: u32,
pub model_name: String,
pub effective_ctx: u64,
}Expand description
Target information for a running model instance.
This struct contains all information needed to route requests to a running llama-server instance.
Fields§
§base_url: StringFull URL to the server (e.g., http://127.0.0.1:5500). Future-proof for non-localhost deployments.
port: u16Port the server is listening on.
model_id: u32Database ID of the model.
model_name: StringHuman-readable model name (for logging/headers).
effective_ctx: u64Actual context size being used.
Implementations§
Trait Implementations§
Source§impl Clone for RunningTarget
impl Clone for RunningTarget
Source§fn clone(&self) -> RunningTarget
fn clone(&self) -> RunningTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RunningTarget
impl RefUnwindSafe for RunningTarget
impl Send for RunningTarget
impl Sync for RunningTarget
impl Unpin for RunningTarget
impl UnwindSafe for RunningTarget
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