pub struct EnumDecodeError {
pub type_name: &'static str,
pub raw: u8,
}Expand description
Error returned when an encoded enum discriminant is unknown.
Fields§
§type_name: &'static strEnum type name.
raw: u8Raw encoded discriminant.
Trait Implementations§
Source§impl Clone for EnumDecodeError
impl Clone for EnumDecodeError
Source§fn clone(&self) -> EnumDecodeError
fn clone(&self) -> EnumDecodeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnumDecodeError
impl Debug for EnumDecodeError
Source§impl Display for EnumDecodeError
impl Display for EnumDecodeError
Source§impl Error for EnumDecodeError
impl Error for EnumDecodeError
1.30.0 · 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 PartialEq for EnumDecodeError
impl PartialEq for EnumDecodeError
impl Copy for EnumDecodeError
impl Eq for EnumDecodeError
impl StructuralPartialEq for EnumDecodeError
Auto Trait Implementations§
impl Freeze for EnumDecodeError
impl RefUnwindSafe for EnumDecodeError
impl Send for EnumDecodeError
impl Sync for EnumDecodeError
impl Unpin for EnumDecodeError
impl UnsafeUnpin for EnumDecodeError
impl UnwindSafe for EnumDecodeError
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