pub enum ReadExactError {
Read(ReadError),
UnexpectedEof,
}Expand description
Error returned by [ProcessReader::read_exact_at].
[ProcessReader::read_exact_at] is built on top of
[ProcessReader::read_at]. It repeatedly performs partial reads until the
caller’s buffer is full. This error reports why that exact read could not be
completed.
Variants§
Read(ReadError)
An underlying call to [ProcessReader::read_at] failed before the buffer
was completely filled.
The wrapped ReadError describes the strategy that failed, or the set
of strategies that failed if automatic strategy selection had not yet
chosen a strategy.
UnexpectedEof
The reader stopped making progress before the buffer was completely filled.
This occurs when [ProcessReader::read_at] returns Ok(0) while
read_exact_at still has bytes left to read.
Trait Implementations§
Source§impl Debug for ReadExactError
impl Debug for ReadExactError
Source§impl Display for ReadExactError
impl Display for ReadExactError
Source§impl Error for ReadExactError
impl Error for ReadExactError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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()
Auto Trait Implementations§
impl Freeze for ReadExactError
impl RefUnwindSafe for ReadExactError
impl Send for ReadExactError
impl Sync for ReadExactError
impl Unpin for ReadExactError
impl UnsafeUnpin for ReadExactError
impl UnwindSafe for ReadExactError
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