pub struct ExternalError {
pub kind: ExternalErrorKind,
pub message: String,
pub retry_after_ms: Option<u64>,
}Expand description
Sanitized error returned by LLM, App Facade, and event ports.
Fields§
§kind: ExternalErrorKindStable machine-readable category.
message: StringSafe diagnostic message without credentials or infrastructure internals.
retry_after_ms: Option<u64>Adapter-supplied retry delay when retrying is meaningful.
Trait Implementations§
Source§impl Clone for ExternalError
impl Clone for ExternalError
Source§fn clone(&self) -> ExternalError
fn clone(&self) -> ExternalError
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 ExternalError
impl Debug for ExternalError
Source§impl<'de> Deserialize<'de> for ExternalError
impl<'de> Deserialize<'de> for ExternalError
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 Display for ExternalError
impl Display for ExternalError
impl Eq for ExternalError
Source§impl Error for ExternalError
impl Error for ExternalError
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<ExternalError> for LlmFailure
impl From<ExternalError> for LlmFailure
Source§fn from(error: ExternalError) -> Self
fn from(error: ExternalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExternalError
impl PartialEq for ExternalError
Source§impl Serialize for ExternalError
impl Serialize for ExternalError
impl StructuralPartialEq for ExternalError
Auto Trait Implementations§
impl Freeze for ExternalError
impl RefUnwindSafe for ExternalError
impl Send for ExternalError
impl Sync for ExternalError
impl Unpin for ExternalError
impl UnsafeUnpin for ExternalError
impl UnwindSafe for ExternalError
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