Enum choices::error::ChoicesError
source · [−]pub enum ChoicesError {
ParseError(String),
Utf8Error(Utf8Error),
FromUtf8Error(FromUtf8Error),
TryFromSliceError(usize, usize),
ParseIntError(ParseIntError),
ParseFloatError(ParseFloatError),
ParseBoolError(ParseBoolError),
ParseCharError(ParseCharError),
ValidationError(String),
}
Expand description
Error type for all kind of errors generated by choices
.
Variants
ParseError(String)
Generic parsing error.
Utf8Error(Utf8Error)
Error when attempting to interpret a sequence of u8 as a string.
FromUtf8Error(FromUtf8Error)
Error when converting a String from a UTF-8 byte vector.
TryFromSliceError(usize, usize)
Error when a conversion from slice to array fails.
ParseIntError(ParseIntError)
Error when parsing an integer.
ParseFloatError(ParseFloatError)
Error when parsing a float.
ParseBoolError(ParseBoolError)
Error when parsing a bool.
ParseCharError(ParseCharError)
Error when parsing a char.
ValidationError(String)
Error when validating a field.
Trait Implementations
sourceimpl Clone for ChoicesError
impl Clone for ChoicesError
sourcefn clone(&self) -> ChoicesError
fn clone(&self) -> ChoicesError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChoicesError
impl Debug for ChoicesError
sourceimpl Display for ChoicesError
impl Display for ChoicesError
sourceimpl Error for ChoicesError
impl Error for ChoicesError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<FromUtf8Error> for ChoicesError
impl From<FromUtf8Error> for ChoicesError
sourcefn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
sourceimpl From<ParseBoolError> for ChoicesError
impl From<ParseBoolError> for ChoicesError
sourcefn from(err: ParseBoolError) -> Self
fn from(err: ParseBoolError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseCharError> for ChoicesError
impl From<ParseCharError> for ChoicesError
sourcefn from(err: ParseCharError) -> Self
fn from(err: ParseCharError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseFloatError> for ChoicesError
impl From<ParseFloatError> for ChoicesError
sourcefn from(err: ParseFloatError) -> Self
fn from(err: ParseFloatError) -> Self
Converts to this type from the input type.
sourceimpl From<ParseIntError> for ChoicesError
impl From<ParseIntError> for ChoicesError
sourcefn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
sourceimpl From<Utf8Error> for ChoicesError
impl From<Utf8Error> for ChoicesError
sourceimpl PartialEq<ChoicesError> for ChoicesError
impl PartialEq<ChoicesError> for ChoicesError
sourcefn eq(&self, other: &ChoicesError) -> bool
fn eq(&self, other: &ChoicesError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChoicesError) -> bool
fn ne(&self, other: &ChoicesError) -> bool
This method tests for !=
.
impl StructuralPartialEq for ChoicesError
Auto Trait Implementations
impl RefUnwindSafe for ChoicesError
impl Send for ChoicesError
impl Sync for ChoicesError
impl Unpin for ChoicesError
impl UnwindSafe for ChoicesError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more