#[non_exhaustive]pub enum OneiromancerError {
FileReadFailed(Error),
OllamaQueryFailed(Error),
ResponseParseFailed(Error),
}Expand description
Oneiromancer error type
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FileReadFailed(Error)
Failure in reading the input file
OllamaQueryFailed(Error)
Failure in querying Ollama API
ResponseParseFailed(Error)
Failure in parsing Ollama response
Trait Implementations§
Source§impl Debug for OneiromancerError
impl Debug for OneiromancerError
Source§impl Display for OneiromancerError
impl Display for OneiromancerError
Source§impl Error for OneiromancerError
impl Error for OneiromancerError
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 OneiromancerError
impl From<Error> for OneiromancerError
Source§impl From<Error> for OneiromancerError
impl From<Error> for OneiromancerError
Auto Trait Implementations§
impl Freeze for OneiromancerError
impl !RefUnwindSafe for OneiromancerError
impl Send for OneiromancerError
impl Sync for OneiromancerError
impl Unpin for OneiromancerError
impl UnsafeUnpin for OneiromancerError
impl !UnwindSafe for OneiromancerError
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