pub struct LoraRequest {
pub id: u64,
pub adapter: Option<String>,
pub payload: LoraPayload,
}Expand description
One serving request with its target LoRA adapter (or None
for “use the base model”). The opaque id: u64 is whatever
the caller wants — typically a request UUID hash.
Fields§
§id: u64§adapter: Option<String>§payload: LoraPayloadCaller-provided payload. The scheduler doesn’t interpret
it; downstream code reads it after drain_batch.
Trait Implementations§
Source§impl Clone for LoraRequest
impl Clone for LoraRequest
Source§fn clone(&self) -> LoraRequest
fn clone(&self) -> LoraRequest
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 moreAuto Trait Implementations§
impl Freeze for LoraRequest
impl RefUnwindSafe for LoraRequest
impl Send for LoraRequest
impl Sync for LoraRequest
impl Unpin for LoraRequest
impl UnsafeUnpin for LoraRequest
impl UnwindSafe for LoraRequest
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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