pub enum UnescapeFnError<Src, Dst> {
Unescape(UnescapeError),
Src(Src),
Dst(Dst),
}
Expand description
An error that can occur during the unescape_from_source
operation.
This enum consolidates errors from the three potential points of failure:
- Reading from the source (
Src
). - The JSON unescaping process itself (
Unescape
). - Writing to the destination (
Dst
).
Variants§
Unescape(UnescapeError)
An error occurred during the unescaping process.
Src(Src)
An error occurred while reading from the source.
Dst(Dst)
An error occurred while writing to the destination.
Trait Implementations§
Source§impl<Src: Clone, Dst: Clone> Clone for UnescapeFnError<Src, Dst>
impl<Src: Clone, Dst: Clone> Clone for UnescapeFnError<Src, Dst>
Source§fn clone(&self) -> UnescapeFnError<Src, Dst>
fn clone(&self) -> UnescapeFnError<Src, Dst>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Src, Dst> Error for UnescapeFnError<Src, Dst>
Available on crate feature std
only.
impl<Src, Dst> Error for UnescapeFnError<Src, Dst>
Available on crate feature
std
only.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 From<UnescapeFnError<Infallible, Infallible>> for UnescapeError
impl From<UnescapeFnError<Infallible, Infallible>> for UnescapeError
Source§fn from(value: UnescapeFnError<Infallible, Infallible>) -> Self
fn from(value: UnescapeFnError<Infallible, Infallible>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Src, Dst> Freeze for UnescapeFnError<Src, Dst>
impl<Src, Dst> RefUnwindSafe for UnescapeFnError<Src, Dst>where
Src: RefUnwindSafe,
Dst: RefUnwindSafe,
impl<Src, Dst> Send for UnescapeFnError<Src, Dst>
impl<Src, Dst> Sync for UnescapeFnError<Src, Dst>
impl<Src, Dst> Unpin for UnescapeFnError<Src, Dst>
impl<Src, Dst> UnwindSafe for UnescapeFnError<Src, Dst>where
Src: UnwindSafe,
Dst: UnwindSafe,
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