pub struct EncodingError {
pub kind: EncodingErrorKind,
pub message: String,
}
Expand description
Encoding/decoding error.
Fields§
§kind: EncodingErrorKind
Specific type of error
message: String
Message for the error
Implementations§
Source§impl EncodingError
impl EncodingError
Sourcepub fn new(kind: EncodingErrorKind, message: &str) -> Self
pub fn new(kind: EncodingErrorKind, message: &str) -> Self
Create EncodingError
Trait Implementations§
Source§impl Debug for EncodingError
impl Debug for EncodingError
Source§impl Display for EncodingError
impl Display for EncodingError
Source§impl From<EncodingError> for Error
impl From<EncodingError> for Error
Source§fn from(e: EncodingError) -> Self
fn from(e: EncodingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncodingError
impl RefUnwindSafe for EncodingError
impl Send for EncodingError
impl Sync for EncodingError
impl Unpin for EncodingError
impl UnwindSafe for EncodingError
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