Enum ZByteIoError
pub enum ZByteIoError
Variants
-
StdIoError(Error) A standard library error Only available with the
stdfeature-
TryFromIntError(TryFromIntError) An error converting from one type to another
-
NotEnoughBytes(usize, usize) Not enough bytes to satisfy a read
-
NotEnoughBuffer(usize, usize) The output buffer is too small to write the bytes
-
Generic(&'static str) An error that may occur randomly
-
SeekError(&'static str) An error that occurred during a seek operation
-
SeekErrorOwned(String) An error that occurred during a seek operation
Implementations
impl ZByteIoError
fn is_recoverable_eof(&self) -> boolReturns
truewhen this error indicates the reader ran out of data, as opposed to a format or data-corruption error.Retry contract: on
NotEnoughBytes, the stream position is already rewound to where the failed read began, so the caller can append more data and retry the same operation without repositioning.
Trait Implementations
impl Debug for ZByteIoError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl From<&'static str> for ZByteIoError
fn from(value: &'static str) -> Self
impl From<Error> for ZByteIoError
fn from(value: Error) -> Self
impl From<TryFromIntError> for ZByteIoError
fn from(value: TryFromIntError) -> Self
Auto Trait Implementations
impl !RefUnwindSafe for ZByteIoError
impl !UnwindSafe for ZByteIoError
impl Freeze for ZByteIoError
impl Send for ZByteIoError
impl Sync for ZByteIoError
impl Unpin for ZByteIoError
impl UnsafeUnpin for ZByteIoError
Blanket Implementations
impl<T> Any for ZByteIoError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ZByteIoError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ZByteIoError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ZByteIoError
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for ZByteIoError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ZByteIoError
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ZByteIoError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>