#[non_exhaustive]pub enum ValueWireDecodeError {
InputTooLarge {
input_bytes: usize,
max_input_bytes: usize,
},
LimitExceeded {
kind: ValueWireLimitKind,
value: usize,
maximum: usize,
},
InvalidJson(Error),
}Expand description
Error produced by a bounded crate::ValueWireV1 JSON decoder.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InputTooLarge
The input exceeds the configured byte budget.
Fields
LimitExceeded
The decoded value exceeded one structural resource limit.
Fields
§
kind: ValueWireLimitKindResource category that exceeded its limit.
InvalidJson(Error)
The bounded input is not a valid V1 JSON wire value.
Trait Implementations§
Source§impl Debug for ValueWireDecodeError
impl Debug for ValueWireDecodeError
Source§impl Display for ValueWireDecodeError
impl Display for ValueWireDecodeError
Source§impl Error for ValueWireDecodeError
impl Error for ValueWireDecodeError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ValueWireDecodeError
impl !UnwindSafe for ValueWireDecodeError
impl Freeze for ValueWireDecodeError
impl Send for ValueWireDecodeError
impl Sync for ValueWireDecodeError
impl Unpin for ValueWireDecodeError
impl UnsafeUnpin for ValueWireDecodeError
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
Source§impl<T> IntoValueDefault<T> for T
impl<T> IntoValueDefault<T> for T
Source§fn into_value_default(self) -> T
fn into_value_default(self) -> T
Converts this argument into the default value. Read more