pub struct PriorityRequest {
pub priority: Priority,
pub arrival_seq: u64,
pub batch: ExecuteBatch,
pub output: Sender<Result<TokenChunk, InferenceError>>,
}Fields§
§priority: Priority§arrival_seq: u64Stable arrival sequence — breaks ties at the same priority so FIFO order is preserved.
batch: ExecuteBatch§output: Sender<Result<TokenChunk, InferenceError>>Channel the worker writes streamed chunks into. The
RequestActor owns the receiver.
Trait Implementations§
Source§impl Debug for PriorityRequest
impl Debug for PriorityRequest
Source§impl Ord for PriorityRequest
impl Ord for PriorityRequest
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PriorityRequest
impl PartialEq for PriorityRequest
Source§impl PartialOrd for PriorityRequest
impl PartialOrd for PriorityRequest
impl Eq for PriorityRequest
Auto Trait Implementations§
impl Freeze for PriorityRequest
impl RefUnwindSafe for PriorityRequest
impl Send for PriorityRequest
impl Sync for PriorityRequest
impl Unpin for PriorityRequest
impl UnsafeUnpin for PriorityRequest
impl UnwindSafe for PriorityRequest
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
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.