pub struct RunHandle { /* private fields */ }Expand description
The result of ModelRunner::execute. Local runtimes typically
return Streaming even for unary calls (one final chunk); remote
runtimes return Streaming for SSE responses and a single-chunk
stream otherwise. Callers always treat it as a stream.
Implementations§
Source§impl RunHandle
impl RunHandle
pub fn streaming(inner: BoxStream<'static, InferenceResult<TokenChunk>>) -> Self
pub fn into_stream(self) -> BoxStream<'static, InferenceResult<TokenChunk>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunHandle
impl !RefUnwindSafe for RunHandle
impl Send for RunHandle
impl !Sync for RunHandle
impl Unpin for RunHandle
impl UnsafeUnpin for RunHandle
impl !UnwindSafe for RunHandle
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