pub enum ReadError {
Read(JsValue),
ByobReadConsumedBuffer,
}Expand description
An error that can occur when reading via Reader::read_into.
Variants§
Read(JsValue)
The underlying read operation threw an error.
ByobReadConsumedBuffer
A BYOB read consumed the buffer and did not provide a new one; this indicates an error condition.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadError
impl RefUnwindSafe for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl UnsafeUnpin for ReadError
impl UnwindSafe for ReadError
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