pub enum TakeBytesError {
Eof,
}
Expand description
Error type for the TakeBytes
trait.
Variants§
Eof
Failed to read the requested number of bytes. No more bytes are available for reading.
Trait Implementations§
Source§impl Debug for TakeBytesError
impl Debug for TakeBytesError
Source§impl Display for TakeBytesError
impl Display for TakeBytesError
Source§impl Error for TakeBytesError
impl Error for TakeBytesError
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<TakeBytesError> for Error
impl From<TakeBytesError> for Error
Source§fn from(source: TakeBytesError) -> Self
fn from(source: TakeBytesError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TakeBytesError
impl PartialEq for TakeBytesError
impl StructuralPartialEq for TakeBytesError
Auto Trait Implementations§
impl Freeze for TakeBytesError
impl RefUnwindSafe for TakeBytesError
impl Send for TakeBytesError
impl Sync for TakeBytesError
impl Unpin for TakeBytesError
impl UnwindSafe for TakeBytesError
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