Struct hypercore::encoding::EncodingError
source · 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) -> EncodingError
pub fn new(kind: EncodingErrorKind, message: &str) -> EncodingError
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 HypercoreError
impl From<EncodingError> for HypercoreError
source§fn from(err: EncodingError) -> Self
fn from(err: 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