pub enum GraalIoError {
NoNullTerminator(),
Utf8ConversionFailed(String),
ValueExceedsMaximum(u64, u64),
Io(Error),
}
Expand description
Errors that can occur when reading or writing to a GraalReader / GraalWriter.
Variants§
NoNullTerminator()
A null terminator was not found when reading a string.
Utf8ConversionFailed(String)
A UTF-8 conversion failed.
ValueExceedsMaximum(u64, u64)
A value exceeds the maximum for a Graal-encoded integer.
Io(Error)
An I/O error occurred.
Trait Implementations§
Source§impl Debug for GraalIoError
impl Debug for GraalIoError
Source§impl Display for GraalIoError
impl Display for GraalIoError
Source§impl Error for GraalIoError
impl Error for GraalIoError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + '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()
Source§impl From<Error> for GraalIoError
impl From<Error> for GraalIoError
Source§impl From<GraalIoError> for BytecodeLoaderError
impl From<GraalIoError> for BytecodeLoaderError
Source§fn from(source: GraalIoError) -> Self
fn from(source: GraalIoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GraalIoError
impl !RefUnwindSafe for GraalIoError
impl Send for GraalIoError
impl Sync for GraalIoError
impl Unpin for GraalIoError
impl !UnwindSafe for GraalIoError
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