pub struct RuntimeErrorEnvelope {
pub message: String,
pub type: String,
pub retryable: bool,
}Expand description
Structured, serializable view of a ModelRuntimeError.
For IPC boundaries (Tauri events, SSE) that need machine-readable type +
retry hints alongside the human-readable message, mirroring the shape
gglib_proxy::models::ErrorResponse already sends over HTTP.
Fields§
§message: StringHuman-readable error message.
type: StringStable error type discriminant, matching the type strings the HTTP
layer already sends for the same ModelRuntimeError variants (e.g.
"service_unavailable"), so GUI and HTTP clients agree on meaning.
retryable: boolWhether retrying the same request may succeed.
Trait Implementations§
Source§impl Clone for RuntimeErrorEnvelope
impl Clone for RuntimeErrorEnvelope
Source§fn clone(&self) -> RuntimeErrorEnvelope
fn clone(&self) -> RuntimeErrorEnvelope
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 moreSource§impl Debug for RuntimeErrorEnvelope
impl Debug for RuntimeErrorEnvelope
Source§impl<'de> Deserialize<'de> for RuntimeErrorEnvelope
impl<'de> Deserialize<'de> for RuntimeErrorEnvelope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ModelRuntimeError> for RuntimeErrorEnvelope
impl From<&ModelRuntimeError> for RuntimeErrorEnvelope
Source§fn from(err: &ModelRuntimeError) -> Self
fn from(err: &ModelRuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuntimeErrorEnvelope
impl RefUnwindSafe for RuntimeErrorEnvelope
impl Send for RuntimeErrorEnvelope
impl Sync for RuntimeErrorEnvelope
impl Unpin for RuntimeErrorEnvelope
impl UnsafeUnpin for RuntimeErrorEnvelope
impl UnwindSafe for RuntimeErrorEnvelope
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