pub enum ConsultError {
NoChannel(String),
Failed(String),
NotAChoice {
answer: String,
choices: Vec<String>,
},
}Expand description
Why a question could not be answered.
Variants§
NoChannel(String)
There is nobody to ask.
Failed(String)
Somebody was asked and the answer did not arrive.
NotAChoice
An answer arrived that was not one of the choices offered.
Trait Implementations§
Source§impl Clone for ConsultError
impl Clone for ConsultError
Source§fn clone(&self) -> ConsultError
fn clone(&self) -> ConsultError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConsultError
impl Debug for ConsultError
Source§impl Display for ConsultError
impl Display for ConsultError
Source§impl Error for ConsultError
impl Error for ConsultError
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 PartialEq for ConsultError
impl PartialEq for ConsultError
impl StructuralPartialEq for ConsultError
Auto Trait Implementations§
impl Freeze for ConsultError
impl RefUnwindSafe for ConsultError
impl Send for ConsultError
impl Sync for ConsultError
impl Unpin for ConsultError
impl UnsafeUnpin for ConsultError
impl UnwindSafe for ConsultError
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