pub enum PromptErrorCause<T: Display> {
DetectionFailed(T),
PromptFailed(Error),
NoneDetected,
}
Variants§
Trait Implementations§
source§impl<T> Display for PromptErrorCause<T>
impl<T> Display for PromptErrorCause<T>
source§impl<T> Error for PromptErrorCause<T>
impl<T> Error for PromptErrorCause<T>
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<T> Freeze for PromptErrorCause<T>where
T: Freeze,
impl<T> !RefUnwindSafe for PromptErrorCause<T>
impl<T> Send for PromptErrorCause<T>where
T: Send,
impl<T> Sync for PromptErrorCause<T>where
T: Sync,
impl<T> Unpin for PromptErrorCause<T>where
T: Unpin,
impl<T> !UnwindSafe for PromptErrorCause<T>
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