Struct PostcardError
pub struct PostcardError(/* private fields */);Expand description
What postcard reported, carried without making postcard’s own error type a part of this crate’s public API.
A newtype with a private field rather than postcard::Error in
CodecError’s arms: a public field of a foreign type would tie this
crate’s semver to postcard’s, and a postcard 2 would be a breaking change
here. The text is what a log wants, and it is all this exposes.
Trait Implementations§
§impl Clone for PostcardError
impl Clone for PostcardError
§impl Debug for PostcardError
impl Debug for PostcardError
§impl Display for PostcardError
impl Display for PostcardError
impl Eq for PostcardError
§impl Error for PostcardError
impl Error for PostcardError
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()
§impl PartialEq for PostcardError
impl PartialEq for PostcardError
impl StructuralPartialEq for PostcardError
Auto Trait Implementations§
impl Freeze for PostcardError
impl RefUnwindSafe for PostcardError
impl Send for PostcardError
impl Sync for PostcardError
impl Unpin for PostcardError
impl UnsafeUnpin for PostcardError
impl UnwindSafe for PostcardError
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