pub enum InputError {
AllocationSizeExceeded,
IoError(Error),
InternalError(InternalRsonpathError),
}
Expand description
Errors raised when constructing Input
implementations.
Variants§
AllocationSizeExceeded
Error that occurs when an unbounded-sized implementation
(e.g. BufferedInput
) would allocate more than the global limit of isize::MAX
.
IoError(Error)
Error when reading input from an underlying IO handle.
InternalError(InternalRsonpathError)
Irrecoverable error due to a broken invariant or assumption. Preferred over panicking.
Trait Implementations§
Source§impl Debug for InputError
impl Debug for InputError
Source§impl Display for InputError
impl Display for InputError
Source§impl Error for InputError
impl Error for InputError
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<Error> for InputError
impl From<Error> for InputError
Source§impl From<Infallible> for InputError
impl From<Infallible> for InputError
Source§fn from(_value: Infallible) -> Self
fn from(_value: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<InputError> for EngineError
impl From<InputError> for EngineError
Source§fn from(source: InputError) -> Self
fn from(source: InputError) -> Self
Converts to this type from the input type.
Source§impl From<InternalRsonpathError> for InputError
impl From<InternalRsonpathError> for InputError
Source§fn from(source: InternalRsonpathError) -> Self
fn from(source: InternalRsonpathError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InputError
impl !RefUnwindSafe for InputError
impl Send for InputError
impl Sync for InputError
impl Unpin for InputError
impl !UnwindSafe for InputError
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