pub enum EncodeError {
Io(Error),
InvalidFloat,
Message(&'static str),
Other(Box<dyn Error + Send + Sync>),
}
Variants§
Io(Error)
InvalidFloat
A float value such as NAN
or INFINITY
was used.
Message(&'static str)
Generic error message.
Other(Box<dyn Error + Send + Sync>)
Some other error trait impl.
Trait Implementations§
Source§impl Debug for EncodeError
impl Debug for EncodeError
Source§impl Display for EncodeError
impl Display for EncodeError
Source§impl Error for EncodeError
impl Error for EncodeError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<Error> for EncodeError
impl From<Error> for EncodeError
Source§fn from(e: Error) -> EncodeError
fn from(e: Error) -> EncodeError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncodeError
impl !RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl !UnwindSafe for EncodeError
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