pub enum BatchWaitError {
Failed {
status: BatchStatus,
},
Timeout {
timeout_secs: f64,
},
Client {
message: String,
code: u32,
},
}Expand description
Error type for batch polling operations.
All fields use FFI-friendly types so the error can be represented across
every language binding without a shim. Duration fields are expressed
as f64 seconds; LiterLlmError is flattened to message + code.
Variants§
Failed
Batch reached a terminal failure state.
Fields
§
status: BatchStatusTerminal batch status (Failed, Expired, or Cancelled).
Timeout
Polling timed out before reaching terminal status.
Client
Underlying client error, flattened to message + numeric code.
Trait Implementations§
Source§impl Debug for BatchWaitError
impl Debug for BatchWaitError
Source§impl Display for BatchWaitError
impl Display for BatchWaitError
Source§impl Error for BatchWaitError
impl Error for BatchWaitError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<LiterLlmError> for BatchWaitError
impl From<LiterLlmError> for BatchWaitError
Source§fn from(err: LiterLlmError) -> Self
fn from(err: LiterLlmError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BatchWaitError
impl RefUnwindSafe for BatchWaitError
impl Send for BatchWaitError
impl Sync for BatchWaitError
impl Unpin for BatchWaitError
impl UnsafeUnpin for BatchWaitError
impl UnwindSafe for BatchWaitError
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