pub struct SpeculationOptions {
pub max_draft: Option<u32>,
pub adaptive: Option<bool>,
pub min_yield: Option<f64>,
pub yield_rounds: Option<u32>,
pub throughput_gate: Option<bool>,
pub gate_probe_tokens: Option<u32>,
pub min_speedup: Option<f64>,
pub gate_reprobe: Option<u32>,
pub gate_reprobe_max: Option<u32>,
pub dspark_confidence: Option<f32>,
}Fields§
§max_draft: Option<u32>§adaptive: Option<bool>§min_yield: Option<f64>§yield_rounds: Option<u32>§throughput_gate: Option<bool>§gate_probe_tokens: Option<u32>§min_speedup: Option<f64>§gate_reprobe: Option<u32>§gate_reprobe_max: Option<u32>§dspark_confidence: Option<f32>Trait Implementations§
Source§impl Clone for SpeculationOptions
impl Clone for SpeculationOptions
Source§impl Debug for SpeculationOptions
impl Debug for SpeculationOptions
Source§impl Default for SpeculationOptions
impl Default for SpeculationOptions
Source§impl PartialEq for SpeculationOptions
impl PartialEq for SpeculationOptions
impl StructuralPartialEq for SpeculationOptions
Auto Trait Implementations§
impl Freeze for SpeculationOptions
impl RefUnwindSafe for SpeculationOptions
impl Send for SpeculationOptions
impl Sync for SpeculationOptions
impl Unpin for SpeculationOptions
impl UnsafeUnpin for SpeculationOptions
impl UnwindSafe for SpeculationOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
Converts
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> ⓘ
Converts
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