Enum cbor4ii::EncodeError
source · #[non_exhaustive]
pub enum EncodeError<E> {
Msg(String),
Write(E),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl<E: Debug> Debug for EncodeError<E>
impl<E: Debug> Debug for EncodeError<E>
source§impl<E: Debug> Display for EncodeError<E>
impl<E: Debug> Display for EncodeError<E>
source§impl<E: Error + 'static> Error for EncodeError<E>
impl<E: Error + 'static> Error for EncodeError<E>
source§impl<E: Error + 'static> Error for EncodeError<E>
impl<E: Error + 'static> Error for EncodeError<E>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<E> From<E> for EncodeError<E>
impl<E> From<E> for EncodeError<E>
source§fn from(err: E) -> EncodeError<E>
fn from(err: E) -> EncodeError<E>
Converts to this type from the input type.