pub enum FastlyAgentError {
LlmClient(LlmClientError),
Fastly(String),
Http {
status: u16,
message: String,
},
Json(Error),
InvalidProvider(String),
}Expand description
Errors that can occur in the Fastly agent
Variants§
Trait Implementations§
Source§impl Debug for FastlyAgentError
impl Debug for FastlyAgentError
Source§impl Display for FastlyAgentError
impl Display for FastlyAgentError
Source§impl Error for FastlyAgentError
impl Error for FastlyAgentError
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<Error> for FastlyAgentError
impl From<Error> for FastlyAgentError
Source§impl From<Error> for FastlyAgentError
impl From<Error> for FastlyAgentError
Source§impl From<LlmClientError> for FastlyAgentError
impl From<LlmClientError> for FastlyAgentError
Source§fn from(source: LlmClientError) -> Self
fn from(source: LlmClientError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FastlyAgentError
impl !RefUnwindSafe for FastlyAgentError
impl Send for FastlyAgentError
impl Sync for FastlyAgentError
impl Unpin for FastlyAgentError
impl UnsafeUnpin for FastlyAgentError
impl !UnwindSafe for FastlyAgentError
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