pub struct PromptError<T: Display> { /* private fields */ }
Implementations§
source§impl<T: Debug + Display> PromptError<T>
impl<T: Debug + Display> PromptError<T>
pub fn new(name: &'static str, cause: PromptErrorCause<T>) -> Self
pub fn detection_failed(name: &'static str, err: T) -> Self
pub fn prompt_failed(name: &'static str, err: Error) -> Self
pub fn none_detected(name: &'static str) -> Self
Trait Implementations§
source§impl<T: Display> Display for PromptError<T>
impl<T: Display> Display for PromptError<T>
source§impl<T: Debug + Display> Error for PromptError<T>
impl<T: Debug + Display> Error for PromptError<T>
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<T: Debug + Display> Reportable for PromptError<T>
impl<T: Debug + Display> Reportable for PromptError<T>
Auto Trait Implementations§
impl<T> Freeze for PromptError<T>where
T: Freeze,
impl<T> !RefUnwindSafe for PromptError<T>
impl<T> Send for PromptError<T>where
T: Send,
impl<T> Sync for PromptError<T>where
T: Sync,
impl<T> Unpin for PromptError<T>where
T: Unpin,
impl<T> !UnwindSafe for PromptError<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