pub enum BytesReadErrorValue {
NotEnoughBytes,
EmptyStream,
IO(Error),
TimeoutError(Elapsed),
}Variants§
Trait Implementations§
Source§impl From<BytesReadErrorValue> for BytesReadError
impl From<BytesReadErrorValue> for BytesReadError
Source§fn from(val: BytesReadErrorValue) -> Self
fn from(val: BytesReadErrorValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BytesReadErrorValue
impl !RefUnwindSafe for BytesReadErrorValue
impl Send for BytesReadErrorValue
impl Sync for BytesReadErrorValue
impl Unpin for BytesReadErrorValue
impl UnsafeUnpin for BytesReadErrorValue
impl !UnwindSafe for BytesReadErrorValue
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