pub struct RunConfig {
pub endpoint: Endpoint,
pub claimed_model: Option<String>,
pub depth: Depth,
pub lang: Lang,
pub selection: Selection,
pub seed: Option<u64>,
pub http: Option<Client>,
pub pace: Option<Pace>,
}Expand description
Everything a run needs.
Fields§
§endpoint: Endpoint§claimed_model: Option<String>The model the vendor claims to serve, when it differs from the id being
requested. Defaults to endpoint.model.
depth: Depth§lang: Lang§selection: Selection§seed: Option<u64>None draws one from the clock — see Rng::from_seed for why an
embedder should choose its own instead.
http: Option<Client>Reuse the caller’s HTTP client. See Client::with_http.
pace: Option<Pace>Spread the run out instead of issuing it as a burst. See Pace.
Implementations§
Source§impl RunConfig
impl RunConfig
pub fn new(endpoint: Endpoint) -> Self
Sourcepub fn model_only(self) -> Self
pub fn model_only(self) -> Self
Probe only what survives a relay — see probes::Subject.
pub fn depth(self, d: Depth) -> Self
pub fn lang(self, l: Lang) -> Self
pub fn seed(self, s: u64) -> Self
pub fn claimed_model(self, m: impl Into<String>) -> Self
pub fn http(self, c: Client) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RunConfig
impl !UnwindSafe for RunConfig
impl Freeze for RunConfig
impl Send for RunConfig
impl Sync for RunConfig
impl Unpin for RunConfig
impl UnsafeUnpin for RunConfig
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