pub enum CompactJsonLimitError {
Encoding(Error),
Limit(LimitExceeded),
}Expand description
An error from encoding and checking compact JSON.
Variants§
Encoding(Error)
Compact JSON encoding failed.
Limit(LimitExceeded)
The encoded JSON exceeds the caller-provided maximum.
Trait Implementations§
Source§impl Debug for CompactJsonLimitError
impl Debug for CompactJsonLimitError
Source§impl Display for CompactJsonLimitError
impl Display for CompactJsonLimitError
Source§impl Error for CompactJsonLimitError
impl Error for CompactJsonLimitError
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 CompactJsonLimitError
impl From<Error> for CompactJsonLimitError
Source§impl From<LimitExceeded> for CompactJsonLimitError
impl From<LimitExceeded> for CompactJsonLimitError
Source§fn from(source: LimitExceeded) -> Self
fn from(source: LimitExceeded) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CompactJsonLimitError
impl !UnwindSafe for CompactJsonLimitError
impl Freeze for CompactJsonLimitError
impl Send for CompactJsonLimitError
impl Sync for CompactJsonLimitError
impl Unpin for CompactJsonLimitError
impl UnsafeUnpin for CompactJsonLimitError
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