pub enum ReadErr {
BufferUnavailable,
DataUnavailable,
}
Expand description
Error type for read.
Note that “that is the latest cursor position, nobody wrote anything more” is not an error but expressed as a 0-length result.
Variants§
No information about the buffer is available at this time
The indicated cursor position has either not been reached yet, or the data has been overwritten already
Trait Implementations§
impl StructuralPartialEq for ReadErr
Auto Trait Implementations§
impl Freeze for ReadErr
impl RefUnwindSafe for ReadErr
impl Send for ReadErr
impl Sync for ReadErr
impl Unpin for ReadErr
impl UnwindSafe for ReadErr
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