Enum tirse::ErrorAdapter
source · pub enum ErrorAdapter<E, D>where
D: DisplayCollector,{
Inner(E),
Other(D),
}
Variants
Inner(E)
Other(D)
Trait Implementations
sourceimpl<E: Debug, D: Debug> Debug for ErrorAdapter<E, D>where
D: DisplayCollector,
impl<E: Debug, D: Debug> Debug for ErrorAdapter<E, D>where
D: DisplayCollector,
sourceimpl<E, D> Display for ErrorAdapter<E, D>where
D: DisplayCollector + Display,
E: Display,
impl<E, D> Display for ErrorAdapter<E, D>where
D: DisplayCollector + Display,
E: Display,
sourceimpl<E, D> Error for ErrorAdapter<E, D>where
D: DisplayCollector + Display + Debug,
E: Display + Debug,
impl<E, D> Error for ErrorAdapter<E, D>where
D: DisplayCollector + Display + Debug,
E: Display + Debug,
sourceimpl<E, D> Error for ErrorAdapter<E, D>where
D: DisplayCollector + Display + Debug,
E: Display + Debug,
impl<E, D> Error for ErrorAdapter<E, D>where
D: DisplayCollector + Display + Debug,
E: Display + Debug,
sourcefn custom<T>(msg: T) -> Selfwhere
T: Display,
fn custom<T>(msg: T) -> Selfwhere
T: Display,
Raised when there is general error when deserializing a type. Read more
sourcefn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
fn invalid_type(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
Raised when a
Deserialize
receives a type different from what it was
expecting. Read moresourcefn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
fn invalid_value(unexp: Unexpected<'_>, exp: &dyn Expected) -> Self
Raised when a
Deserialize
receives a value of the right type but that
is wrong for some other reason. Read moresourcefn invalid_length(len: usize, exp: &dyn Expected) -> Self
fn invalid_length(len: usize, exp: &dyn Expected) -> Self
Raised when deserializing a sequence or map and the input data contains
too many or too few elements. Read more
sourcefn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
fn unknown_variant(variant: &str, expected: &'static [&'static str]) -> Self
Raised when a
Deserialize
enum type received a variant with an
unrecognized name. Read moresourcefn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
fn unknown_field(field: &str, expected: &'static [&'static str]) -> Self
Raised when a
Deserialize
struct type received a field with an
unrecognized name. Read moresourcefn missing_field(field: &'static str) -> Self
fn missing_field(field: &'static str) -> Self
Raised when a
Deserialize
struct type expected to receive a required
field with a particular name but that field was not present in the
input. Read moresourcefn duplicate_field(field: &'static str) -> Self
fn duplicate_field(field: &'static str) -> Self
Raised when a
Deserialize
struct type received more than one of the
same field. Read moreAuto Trait Implementations
impl<E, D> RefUnwindSafe for ErrorAdapter<E, D>where
D: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, D> Send for ErrorAdapter<E, D>where
D: Send,
E: Send,
impl<E, D> Sync for ErrorAdapter<E, D>where
D: Sync,
E: Sync,
impl<E, D> Unpin for ErrorAdapter<E, D>where
D: Unpin,
E: Unpin,
impl<E, D> UnwindSafe for ErrorAdapter<E, D>where
D: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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