pub struct TrailingBytes(pub usize);Expand description
Bytes remained after a decode_exact that should have consumed the whole buffer.
Tuple Fields§
§0: usizeTrait Implementations§
Source§impl Clone for TrailingBytes
impl Clone for TrailingBytes
Source§fn clone(&self) -> TrailingBytes
fn clone(&self) -> TrailingBytes
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 moreimpl Copy for TrailingBytes
Source§impl Debug for TrailingBytes
impl Debug for TrailingBytes
Source§impl Display for TrailingBytes
impl Display for TrailingBytes
impl Eq for TrailingBytes
Source§impl Error for TrailingBytes
impl Error for TrailingBytes
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 TrailingBytes
impl PartialEq for TrailingBytes
impl StructuralPartialEq for TrailingBytes
Auto Trait Implementations§
impl Freeze for TrailingBytes
impl RefUnwindSafe for TrailingBytes
impl Send for TrailingBytes
impl Sync for TrailingBytes
impl Unpin for TrailingBytes
impl UnsafeUnpin for TrailingBytes
impl UnwindSafe for TrailingBytes
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