pub struct UnexpectedEnd;
Expand description
Error indicating that the provided buffer was too small
Trait Implementations§
Source§impl Clone for UnexpectedEnd
impl Clone for UnexpectedEnd
Source§fn clone(&self) -> UnexpectedEnd
fn clone(&self) -> UnexpectedEnd
Returns a copy 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 UnexpectedEnd
impl Debug for UnexpectedEnd
Source§impl Display for UnexpectedEnd
impl Display for UnexpectedEnd
Source§impl Error for UnexpectedEnd
impl Error for UnexpectedEnd
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 From<UnexpectedEnd> for Error
impl From<UnexpectedEnd> for Error
Source§fn from(_: UnexpectedEnd) -> Self
fn from(_: UnexpectedEnd) -> Self
Converts to this type from the input type.
Source§impl From<UnexpectedEnd> for PacketDecodeError
impl From<UnexpectedEnd> for PacketDecodeError
Source§fn from(_: UnexpectedEnd) -> Self
fn from(_: UnexpectedEnd) -> Self
Converts to this type from the input type.
Source§impl PartialEq for UnexpectedEnd
impl PartialEq for UnexpectedEnd
impl Copy for UnexpectedEnd
impl Eq for UnexpectedEnd
impl StructuralPartialEq for UnexpectedEnd
Auto Trait Implementations§
impl Freeze for UnexpectedEnd
impl RefUnwindSafe for UnexpectedEnd
impl Send for UnexpectedEnd
impl Sync for UnexpectedEnd
impl Unpin for UnexpectedEnd
impl UnwindSafe for UnexpectedEnd
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