#[non_exhaustive]pub enum OutputRefsError {
NotAnObject,
TooLarge {
length: usize,
},
}Expand description
Why a value was refused as an OutputRefs descriptor. Every variant is
about OUTPUT_REFS_FIELD.
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.
NotAnObject
The value was not a JSON object.
TooLarge
The object’s compact JSON encoding was length bytes, more than
MAX_OUTPUT_REFS_BYTES.
Implementations§
Trait Implementations§
Source§impl Clone for OutputRefsError
impl Clone for OutputRefsError
Source§impl Debug for OutputRefsError
impl Debug for OutputRefsError
Source§impl Display for OutputRefsError
impl Display for OutputRefsError
impl Eq for OutputRefsError
Source§impl Error for OutputRefsError
impl Error for OutputRefsError
1.30.0 · 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 PartialEq for OutputRefsError
impl PartialEq for OutputRefsError
impl StructuralPartialEq for OutputRefsError
Auto Trait Implementations§
impl Freeze for OutputRefsError
impl RefUnwindSafe for OutputRefsError
impl Send for OutputRefsError
impl Sync for OutputRefsError
impl Unpin for OutputRefsError
impl UnsafeUnpin for OutputRefsError
impl UnwindSafe for OutputRefsError
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