pub enum HostImportError {
MismatchWValues(Type, Value),
MismatchWValuesCount,
LifterError(LiError),
LowererError(LoError),
RecordNotFound(RecordResolvableError),
InvalidUTF8String(FromUtf8Error),
}
Variants
MismatchWValues(Type, Value)
An error occurred when host functions tries to lift IValues from WValues and the latter has different type.
MismatchWValuesCount
An error occurred when a host functions tries to lift IValues from WValues and the latter is not enough for that.
LifterError(LiError)
LowererError(LoError)
RecordNotFound(RecordResolvableError)
InvalidUTF8String(FromUtf8Error)
Trait Implementations
impl Debug for HostImportError
impl Debug for HostImportError
impl Display for HostImportError
impl Display for HostImportError
impl Error for HostImportError
impl Error for HostImportError
fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<FromUtf8Error> for HostImportError
impl From<FromUtf8Error> for HostImportError
fn from(source: FromUtf8Error) -> HostImportError
fn from(source: FromUtf8Error) -> HostImportError
Converts to this type from the input type.
impl From<LiError> for HostImportError
impl From<LiError> for HostImportError
fn from(source: LiError) -> HostImportError
fn from(source: LiError) -> HostImportError
Converts to this type from the input type.
impl From<LoError> for HostImportError
impl From<LoError> for HostImportError
fn from(source: LoError) -> HostImportError
fn from(source: LoError) -> HostImportError
Converts to this type from the input type.
impl From<RecordResolvableError> for HostImportError
impl From<RecordResolvableError> for HostImportError
fn from(source: RecordResolvableError) -> HostImportError
fn from(source: RecordResolvableError) -> HostImportError
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for HostImportError
impl Send for HostImportError
impl Sync for HostImportError
impl Unpin for HostImportError
impl UnwindSafe for HostImportError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more