pub enum SummarizerError {
Timeout,
Transport(String),
Parse(String),
Other(String),
}Expand description
Errors a Summarizer implementation may return.
Variants§
Timeout
The summarizer call timed out.
Transport(String)
Network / transport failure.
Parse(String)
Parsing the LLM’s structured response failed.
Other(String)
Catch-all.
Implementations§
Trait Implementations§
Source§impl Debug for SummarizerError
impl Debug for SummarizerError
Source§impl Display for SummarizerError
impl Display for SummarizerError
Source§impl Error for SummarizerError
impl Error for SummarizerError
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()
Auto Trait Implementations§
impl Freeze for SummarizerError
impl RefUnwindSafe for SummarizerError
impl Send for SummarizerError
impl Sync for SummarizerError
impl Unpin for SummarizerError
impl UnsafeUnpin for SummarizerError
impl UnwindSafe for SummarizerError
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