pub enum ServerError {
Show 17 variants
BindError {
addr: String,
source: Error,
},
Runtime(RuntimeError),
Serialization(Error),
InvalidRequest {
message: String,
},
ModelNotReady,
QueueFull,
WorkerDead,
ThreadNotFound(String),
RunNotFound(String),
RunInTerminalState(String),
FileNotFound(String),
FileTooLarge(String),
FileStoreError(String),
RunStepNotFound(String),
IoError {
context: String,
source: Error,
},
ResponseNotFound(String),
PreviousResponseNotFound(String),
}Expand description
Errors that can occur in the API server.
Variants§
BindError
Failed to bind to the specified address.
Runtime(RuntimeError)
Error from the inference runtime.
Serialization(Error)
JSON serialization/deserialization error.
InvalidRequest
Invalid request parameters.
ModelNotReady
Model is not ready for inference.
QueueFull
The inference request queue is full; the server is overloaded.
WorkerDead
The inference worker has exited; no new requests can be processed.
ThreadNotFound(String)
Thread not found in the persistent store.
RunNotFound(String)
Run not found in the persistent store.
RunInTerminalState(String)
Attempted to transition a run that is already in a terminal state.
FileNotFound(String)
File not found in the persistent files store.
FileTooLarge(String)
Uploaded file exceeds the maximum allowed size.
FileStoreError(String)
Generic file store error.
RunStepNotFound(String)
Run step not found in the persistent store.
IoError
Generic I/O error with context.
Fields
ResponseNotFound(String)
Response not found in the in-memory responses store.
PreviousResponseNotFound(String)
Previous response not found when chaining with previous_response_id.
Trait Implementations§
Source§impl Debug for ServerError
impl Debug for ServerError
Source§impl Display for ServerError
impl Display for ServerError
Source§impl Error for ServerError
impl Error for ServerError
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 ServerError
impl From<Error> for ServerError
Source§impl From<RuntimeError> for ServerError
impl From<RuntimeError> for ServerError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Source§impl IntoResponse for ServerError
impl IntoResponse for ServerError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Auto Trait Implementations§
impl Freeze for ServerError
impl !RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl UnsafeUnpin for ServerError
impl !UnwindSafe for ServerError
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
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more