pub enum FrameWriteError {
TooDeep,
TooLong,
Invalid,
CountMismatch,
DuplicateKey,
Unwritten,
Unfinished,
Source(SourceError),
}Expand description
Why a value could not be written as a frame.
Variants§
TooDeep
Nested deeper than MAX_DEPTH.
TooLong
Text, bytes, a key or a count longer than a u32.
Invalid
A value that is not valid for its logical type.
CountMismatch
A container’s declared length did not match the children written.
DuplicateKey
A map wrote the same key twice.
Unwritten
A child sink was dropped without a value written into it, which would leave the container’s count ahead of its children.
Unfinished
A container was never ended, so its count was never written and the bytes are not a frame.
Source(SourceError)
The source stopped the walk.
Trait Implementations§
Source§impl Debug for FrameWriteError
impl Debug for FrameWriteError
Source§impl Display for FrameWriteError
impl Display for FrameWriteError
Source§impl Error for FrameWriteError
impl Error for FrameWriteError
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 Error for FrameWriteError
impl Error for FrameWriteError
Source§fn source(error: SourceError) -> Self
fn source(error: SourceError) -> Self
Wrap a failure that came from the source, not the sink.
Auto Trait Implementations§
impl !RefUnwindSafe for FrameWriteError
impl !UnwindSafe for FrameWriteError
impl Freeze for FrameWriteError
impl Send for FrameWriteError
impl Sync for FrameWriteError
impl Unpin for FrameWriteError
impl UnsafeUnpin for FrameWriteError
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