[−][src]Enum ssb_json_msg_data::json::EncodeJsonError
Everything that can go wrong during json serialization.
Variants
Io(Error)
An IO error occured on the underlying writer.
When serializing directly into a Vec<u8>
or String
, this error never occurs.
InvalidFloat(f64)
Tried to serialize a number forbidden by the ssb data format (an inifinity, NaN or -0.0).
InvalidUnsignedInteger(u64)
Tried to serialize an unsigned integer larger than 2^53 (these are not guaranteed to be represented correctly in a 64 bit float).
InvalidSignedInteger(i64)
Tried to serialize an signed integer with absolute value larger than 2^53 (these are not guaranteed to be represented correctly in a 64 bit float).
Can only serialize collections whose length is known upfront.
Message(String)
Custom, stringly-typed error.
Trait Implementations
impl Debug for EncodeJsonError
[src]
impl Display for EncodeJsonError
[src]
impl Error for EncodeJsonError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl Error for EncodeJsonError
[src]
impl From<Error> for EncodeJsonError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for EncodeJsonError
impl Send for EncodeJsonError
impl Sync for EncodeJsonError
impl Unpin for EncodeJsonError
impl !UnwindSafe for EncodeJsonError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,