pub enum WriteError {
Unwritable(Unwritable),
Charge(ChargeError),
}Expand description
Why a value was not written: a value json.dumps cannot write, or the
refused charge of the walk’s stack.
Variants§
Unwritable(Unwritable)
Charge(ChargeError)
The stack’s growth, refused by meter (or by the allocator, which
the core reports as a budget’s refusal).
Trait Implementations§
Source§impl Clone for WriteError
impl Clone for WriteError
Source§impl Debug for WriteError
impl Debug for WriteError
Source§impl Display for WriteError
impl Display for WriteError
impl Eq for WriteError
Source§impl Error for WriteError
impl Error for WriteError
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<ChargeError> for WriteError
impl From<ChargeError> for WriteError
Source§fn from(source: ChargeError) -> Self
fn from(source: ChargeError) -> Self
Converts to this type from the input type.
Source§impl From<Unwritable> for WriteError
impl From<Unwritable> for WriteError
Source§fn from(source: Unwritable) -> Self
fn from(source: Unwritable) -> Self
Converts to this type from the input type.
Source§impl From<WriteError> for Error
impl From<WriteError> for Error
Source§fn from(source: WriteError) -> Self
fn from(source: WriteError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WriteError
impl PartialEq for WriteError
impl StructuralPartialEq for WriteError
Auto Trait Implementations§
impl Forget for WriteError
impl Freeze for WriteError
impl Move for WriteError
impl RefUnwindSafe for WriteError
impl Send for WriteError
impl Sync for WriteError
impl Unpin for WriteError
impl UnsafeUnpin for WriteError
impl UnwindSafe for WriteError
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