pub enum ChooseError {
InvalidText {
error: String,
},
UnexpectedText,
UnexpectedChoice,
}Expand description
The Input provided to Builder::choose was is invalid.
Variants§
InvalidText
The textual input is not valid.
UnexpectedText
Provided Input::Text even though Options::text_input was set to false.
UnexpectedChoice
Provided an Input::Choice with an invalid id.
Trait Implementations§
Source§impl Debug for ChooseError
impl Debug for ChooseError
Source§impl Display for ChooseError
impl Display for ChooseError
Source§impl Fail for ChooseError
impl Fail for ChooseError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl PartialEq for ChooseError
impl PartialEq for ChooseError
impl Eq for ChooseError
impl StructuralPartialEq for ChooseError
Auto Trait Implementations§
impl Freeze for ChooseError
impl RefUnwindSafe for ChooseError
impl Send for ChooseError
impl Sync for ChooseError
impl Unpin for ChooseError
impl UnwindSafe for ChooseError
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