pub enum RustCallError {
Error(RustBuffer),
InternalError(String),
}Expand description
Error type for Rust scaffolding calls
This enum represents the fact that there are two ways for a scaffolding call to fail:
- Expected errors (the Rust function returned an
Errvalue). - Unexpected errors (there was a failure calling the Rust function, for example the failure to lift the arguments).
Variants§
Error(RustBuffer)
The Rust function returned an Err value.
The associated value is the serialized Err value.
InternalError(String)
There was a failure to call the Rust function, for example a failure to lift the arguments.
The associated value is a message string for the error.
Auto Trait Implementations§
impl Freeze for RustCallError
impl RefUnwindSafe for RustCallError
impl Send for RustCallError
impl !Sync for RustCallError
impl Unpin for RustCallError
impl UnwindSafe for RustCallError
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