pub struct Unreadable(/* private fields */);Expand description
These bytes are not the ones that were written: truncated, left over, or never a message at all.
A struct and not an enum, unlike the wire’s, and the difference is the domain: there a message can also fail because a value only exists in its own process. Nothing in this conversation carries a value, so there is one way to fail and a closed set of one is a struct.
Implementations§
Trait Implementations§
Source§impl Clone for Unreadable
impl Clone for Unreadable
Source§fn clone(&self) -> Unreadable
fn clone(&self) -> Unreadable
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 Unreadable
impl Debug for Unreadable
Source§impl Display for Unreadable
impl Display for Unreadable
Source§impl Error for Unreadable
impl Error for Unreadable
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 Unreadable
impl PartialEq for Unreadable
impl Eq for Unreadable
impl StructuralPartialEq for Unreadable
Auto Trait Implementations§
impl Freeze for Unreadable
impl RefUnwindSafe for Unreadable
impl Send for Unreadable
impl Sync for Unreadable
impl Unpin for Unreadable
impl UnsafeUnpin for Unreadable
impl UnwindSafe for Unreadable
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