pub struct UnexpectedEOF(/* private fields */);Expand description
This error indicates capnpack::unpack needed more data, but was unable to get it.
self.0 contains the tag that generated this error.
Trait Implementations§
Source§impl Clone for UnexpectedEOF
impl Clone for UnexpectedEOF
Source§fn clone(&self) -> UnexpectedEOF
fn clone(&self) -> UnexpectedEOF
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UnexpectedEOF
impl Debug for UnexpectedEOF
Source§impl Display for UnexpectedEOF
impl Display for UnexpectedEOF
Source§impl Error for UnexpectedEOF
impl Error for UnexpectedEOF
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 Hash for UnexpectedEOF
impl Hash for UnexpectedEOF
Source§impl Ord for UnexpectedEOF
impl Ord for UnexpectedEOF
Source§fn cmp(&self, other: &UnexpectedEOF) -> Ordering
fn cmp(&self, other: &UnexpectedEOF) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UnexpectedEOF
impl PartialEq for UnexpectedEOF
Source§fn eq(&self, other: &UnexpectedEOF) -> bool
fn eq(&self, other: &UnexpectedEOF) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for UnexpectedEOF
impl PartialOrd for UnexpectedEOF
impl Copy for UnexpectedEOF
impl Eq for UnexpectedEOF
impl StructuralPartialEq for UnexpectedEOF
Auto Trait Implementations§
impl Freeze for UnexpectedEOF
impl RefUnwindSafe for UnexpectedEOF
impl Send for UnexpectedEOF
impl Sync for UnexpectedEOF
impl Unpin for UnexpectedEOF
impl UnsafeUnpin for UnexpectedEOF
impl UnwindSafe for UnexpectedEOF
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