pub enum SchedulerPolicy {
Fcfs,
Priority,
LongestPrefixMatch,
}Expand description
Native scheduler admission order.
Raw and serde chat request JSON can carry a priority field that the native
OpenAI-compatible path parses and submits. Direct completion, completion
streaming, and crate::Request submissions currently default to priority zero
and tie by arrival; caller-selected priorities for those direct APIs require a
future C ABI/API change.
Variants§
Fcfs
Process requests in arrival order.
Priority
Order requests by priority and then arrival time.
This variant selects the native priority queue; it does not itself assign a priority to a request.
LongestPrefixMatch
Prefer requests sharing the longest cached prefix.
Trait Implementations§
Source§impl Clone for SchedulerPolicy
impl Clone for SchedulerPolicy
Source§fn clone(&self) -> SchedulerPolicy
fn clone(&self) -> SchedulerPolicy
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 Copy for SchedulerPolicy
Source§impl Debug for SchedulerPolicy
impl Debug for SchedulerPolicy
Source§impl Default for SchedulerPolicy
impl Default for SchedulerPolicy
Source§fn default() -> SchedulerPolicy
fn default() -> SchedulerPolicy
Returns the “default value” for a type. Read more
impl Eq for SchedulerPolicy
Source§impl PartialEq for SchedulerPolicy
impl PartialEq for SchedulerPolicy
impl StructuralPartialEq for SchedulerPolicy
Auto Trait Implementations§
impl Freeze for SchedulerPolicy
impl RefUnwindSafe for SchedulerPolicy
impl Send for SchedulerPolicy
impl Sync for SchedulerPolicy
impl Unpin for SchedulerPolicy
impl UnsafeUnpin for SchedulerPolicy
impl UnwindSafe for SchedulerPolicy
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