pub enum EncodeError {
IoError(Error),
UnexpectedEOF,
InvalidSimpleValue(Simple),
InvalidValue(Value),
Other(Box<dyn Error + Send + Sync>),
}
Variants§
IoError(Error)
Some I/O error
UnexpectedEOF
The end of file has been encountered unexpectedly
InvalidSimpleValue(Simple)
The provided Simple
value is neither unassigned nor reserved
InvalidValue(Value)
Certain values (e.g. Value::Break
) are not legal to encode as
independent units. Attempting to do so will trigger this error.
Other(Box<dyn Error + Send + Sync>)
Some other error.
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