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