pub struct ContentError { /* private fields */ }Expand description
An error happened while interpreting BER-encoded data.
Implementations§
Source§impl ContentError
impl ContentError
Sourcepub fn from_static(msg: &'static str) -> Self
pub fn from_static(msg: &'static str) -> Self
Creates a content error from a static str.
Trait Implementations§
Source§impl Debug for ContentError
impl Debug for ContentError
Source§impl Display for ContentError
impl Display for ContentError
Source§impl From<&'static str> for ContentError
impl From<&'static str> for ContentError
Source§impl From<DecodeError<Infallible>> for ContentError
impl From<DecodeError<Infallible>> for ContentError
Source§fn from(err: DecodeError<Infallible>) -> Self
fn from(err: DecodeError<Infallible>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContentError
impl !RefUnwindSafe for ContentError
impl Send for ContentError
impl Sync for ContentError
impl Unpin for ContentError
impl !UnwindSafe for ContentError
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