pub enum FusilladeError {
RequestNotFound(RequestId),
RequestStateConflict {
id: RequestId,
current_state: String,
expected: &'static str,
},
RequestCancelled(RequestId),
Shutdown,
InvalidState(RequestId, String, String),
ValidationError(String),
HttpClient(Error),
FirstChunkTimeout(String),
TokensTimeout(String),
BodyTimeout(String),
Serialization(Error),
Other(Error),
}Expand description
Main error type for the batching system.
Variants§
RequestNotFound(RequestId)
Request not found
RequestStateConflict
Request exists but is not in the expected state for the requested operation (e.g., completing an already-completed or failed request).
Distinct from [RequestNotFound] so callers can be properly idempotent
against concurrent writers — e.g. a complete-then-complete race where
the second caller should treat “already completed” as success rather
than synthesizing a new row.
RequestCancelled(RequestId)
Cancelled request
Shutdown
Daemon is shutting down
InvalidState(RequestId, String, String)
Request is in an invalid state for the requested operation
ValidationError(String)
Validation error (e.g., invalid file format, missing required fields)
HttpClient(Error)
HTTP client error
FirstChunkTimeout(String)
Timed out waiting for response headers + first body chunk (time-to-first-token). Only used for streaming requests. Handles servers (like vLLM) that return headers immediately but queue the request before producing tokens.
TokensTimeout(String)
Timed out waiting for the next chunk of response body tokens (streaming only)
BodyTimeout(String)
Timed out waiting for the entire response body to complete (streaming only). Fires when the total body read exceeds body_timeout.
Serialization(Error)
Serialization/deserialization error
Other(Error)
General error from anyhow
Trait Implementations§
Source§impl Debug for FusilladeError
impl Debug for FusilladeError
Source§impl Display for FusilladeError
impl Display for FusilladeError
Source§impl Error for FusilladeError
impl Error for FusilladeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for FusilladeError
impl From<Error> for FusilladeError
Source§impl From<Error> for FusilladeError
impl From<Error> for FusilladeError
Auto Trait Implementations§
impl !RefUnwindSafe for FusilladeError
impl !UnwindSafe for FusilladeError
impl Freeze for FusilladeError
impl Send for FusilladeError
impl Sync for FusilladeError
impl Unpin for FusilladeError
impl UnsafeUnpin for FusilladeError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
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>
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