Enum yamlscript::Error
source · pub enum Error {
NotFound,
Load(Error),
GraalVM(i32),
Ffi(String),
YAMLScript(LibYAMLScriptError),
Serde(Error),
Utf8(Utf8Error),
}Expand description
An error with libyamlscript.
Variants§
NotFound
The library was not found.
Load(Error)
An error while loading the library.
This error is unrecoverable and any further attempt to call any libyamlscript function will fail.
GraalVM(i32)
An error with GraalVM.
Ffi(String)
An error in the FFI while calling a libyamlscript function.
YAMLScript(LibYAMLScriptError)
An error from the libyamlscript library.
This variant is used when we have successfully resolved the function we want to call in
libyamlscript.so, but the engine returned an error, that we successfully parsed.
Serde(Error)
An error with serde_json while deserializing.
Utf8(Utf8Error)
An error while decoding strings returned from libyamlscript.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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